Changeset View
Changeset View
Standalone View
Standalone View
plugins/grepview/grepdialog.cpp
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Line(s) | 360 | foreach(IProject* project, ICore::self()->projectController()->projects()) | |||
---|---|---|---|---|---|
361 | ret << project->path().toUrl(); | 361 | ret << project->path().toUrl(); | ||
362 | }else{ | 362 | }else{ | ||
363 | QStringList semicolonSeparatedFileList = text.split(pathsSeparator()); | 363 | QStringList semicolonSeparatedFileList = text.split(pathsSeparator()); | ||
364 | if(!semicolonSeparatedFileList.isEmpty() && QFileInfo::exists(semicolonSeparatedFileList[0])) | 364 | if(!semicolonSeparatedFileList.isEmpty() && QFileInfo::exists(semicolonSeparatedFileList[0])) | ||
365 | { | 365 | { | ||
366 | // We use QFileInfo to make sure this is really a semicolon-separated file list, not a file containing | 366 | // We use QFileInfo to make sure this is really a semicolon-separated file list, not a file containing | ||
367 | // a semicolon in the name. | 367 | // a semicolon in the name. | ||
368 | foreach(const QString& file, semicolonSeparatedFileList) | 368 | foreach(const QString& file, semicolonSeparatedFileList) | ||
369 | ret << QUrl::fromLocalFile(file); | 369 | ret << QUrl::fromLocalFile(file).adjusted(QUrl::StripTrailingSlash); | ||
370 | }else{ | 370 | }else{ | ||
371 | ret << QUrl::fromUserInput(searchPaths->currentText()); | 371 | ret << QUrl::fromUserInput(searchPaths->currentText()).adjusted(QUrl::StripTrailingSlash); | ||
372 | } | 372 | } | ||
373 | } | 373 | } | ||
374 | return ret; | 374 | return ret; | ||
375 | } | 375 | } | ||
376 | 376 | | |||
377 | bool GrepDialog::isPartOfChoice(QUrl url) const | 377 | bool GrepDialog::isPartOfChoice(QUrl url) const | ||
378 | { | 378 | { | ||
379 | foreach(const QUrl& choice, getDirectoryChoice()) | 379 | foreach(const QUrl& choice, getDirectoryChoice()) | ||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |