Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.cpp
Show First 20 Lines • Show All 997 Lines • ▼ Show 20 Line(s) | 975 | { | |||
---|---|---|---|---|---|
998 | 998 | | |||
999 | QString fileName = url.adjusted(QUrl::StripTrailingSlash).fileName(); | 999 | QString fileName = url.adjusted(QUrl::StripTrailingSlash).fileName(); | ||
1000 | if (fileName.isEmpty()) { | 1000 | if (fileName.isEmpty()) { | ||
1001 | fileName = '/'; | 1001 | fileName = '/'; | ||
1002 | } | 1002 | } | ||
1003 | 1003 | | |||
1004 | if (m_activeViewContainer->isSearchModeEnabled()) { | 1004 | if (m_activeViewContainer->isSearchModeEnabled()) { | ||
1005 | if(m_activeViewContainer->currentSearchText().isEmpty()){ | 1005 | if(m_activeViewContainer->currentSearchText().isEmpty()){ | ||
1006 | setWindowTitle(i18n("Empty Search")); | 1006 | setWindowTitle(i18n("Search")); | ||
1007 | } else { | 1007 | } else { | ||
1008 | const auto searchText = i18n("Search for %1", m_activeViewContainer->currentSearchText()); | 1008 | const auto searchText = i18n("Search for %1", m_activeViewContainer->currentSearchText()); | ||
1009 | setWindowTitle(searchText); | 1009 | setWindowTitle(searchText); | ||
1010 | } | 1010 | } | ||
1011 | return; | 1011 | return; | ||
1012 | } | 1012 | } | ||
1013 | 1013 | | |||
1014 | setWindowTitle(schemePrefix + fileName); | 1014 | setWindowTitle(schemePrefix + fileName); | ||
▲ Show 20 Lines • Show All 587 Lines • Show Last 20 Lines |