A search URL is never local, so this part of the code was never reached, resulting in raw baloosearch or filenamesearch URLs
showing up as window and tab title
Differential Revision: https://phabricator.kde.org/D15772
if (!matchedPlaces.isEmpty()) {
return placesModel->text(matchedPlaces.first());
}
+
+ if (isSearchModeEnabled()) {
+ if (currentSearchText().isEmpty()){
+ return i18n("Search");
+ } else {
+ return i18n("Search for %1", currentSearchText());
+ }
+ }
+
if (!url().isLocalFile()) {
QUrl adjustedUrl = url().adjusted(QUrl::StripTrailingSlash);
QString caption;
fileName = '/';
}
- if (isSearchModeEnabled()) {
- if(currentSearchText().isEmpty()){
- return i18n("Search");
- } else {
- return i18n("Search for %1", currentSearchText());
- }
- }
-
return fileName;
}