}
m_searchModeEnabled = enabled;
+
+ emit searchModeEnabledChanged(enabled);
}
bool DolphinViewContainer::isSearchModeEnabled() const
if (isSearchModeEnabled()) {
text = i18n("Search for %1 in %2", m_searchBox->text(), m_searchBox->searchPath().fileName());
} else {
- text = url().fileName();
+ text = url().adjusted(QUrl::StripTrailingSlash).fileName();
if (text.isEmpty()) {
text = url().host();
}
// Trigger an undetermined progress indication. The progress
// information in percent will be triggered by the percent() signal
// of the directory lister later.
+ m_statusBar->setProgressText(QString());
updateDirectoryLoadingProgress(-1);
}
}
app = browser;
if (app.startsWith('!')) {
// a literal command has been configured, remove the '!' prefix
- app = app.mid(1);
+ app.remove(0, 1);
}
}
} else {
bool DolphinViewContainer::isSearchUrl(const QUrl& url) const
{
- return url.scheme().contains(QStringLiteral("search"));
+ return url.scheme().contains(QLatin1String("search"));
}
void DolphinViewContainer::saveViewState()