Commit cc09a2a7 authored by Antonio Prcela's avatar Antonio Prcela 🏞 Committed by Nate Graham
Browse files

Show path in window title while in browse mode

parent d7939fda
...@@ -1037,7 +1037,7 @@ void MainWindow::setActiveViewModeAction(QAction* action) ...@@ -1037,7 +1037,7 @@ void MainWindow::setActiveViewModeAction(QAction* action)
// his image back. // his image back.
d->mViewMainPage->reset(); d->mViewMainPage->reset();
} }
setCaption(QString()); setCaption(d->mUrlNavigator->locationUrl().adjusted(QUrl::RemoveScheme).toString());
} }
d->autoAssignThumbnailProvider(); d->autoAssignThumbnailProvider();
toggleSideBar(d->sideBarVisibility()); toggleSideBar(d->sideBarVisibility());
...@@ -1287,6 +1287,9 @@ void MainWindow::slotCurrentDirUrlChanged(const QUrl &url) ...@@ -1287,6 +1287,9 @@ void MainWindow::slotCurrentDirUrlChanged(const QUrl &url)
if (url.isValid()) { if (url.isValid()) {
d->mUrlNavigator->setLocationUrl(url); d->mUrlNavigator->setLocationUrl(url);
d->mGoUpAction->setEnabled(url.path() != "/"); d->mGoUpAction->setEnabled(url.path() != "/");
if (d->mCurrentMainPageId == BrowseMainPageId) {
setCaption(d->mUrlNavigator->locationUrl().adjusted(QUrl::RemoveScheme).toString());
}
} else { } else {
d->mGoUpAction->setEnabled(false); d->mGoUpAction->setEnabled(false);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment