[graphics/gwenview] app: On switch to browser mode: keep scheme for non-local URLs in window title
Friedrich W. H. Kossebau <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 7788160ba908e0f0cf65bfb440c3b41167146dfb by Friedrich W. H. Kossebau.
Committed on 29/07/2026 at 10:51.
Pushed by kossebau into branch 'master'.
On switch to browser mode: keep scheme for non-local URLs in window title
M +1 -1 app/mainwindow.cpp
https://invent.kde.org/graphics/gwenview/-/commit/7788160ba908e0f0cf65bfb440c3b41167146dfb
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 129a60a64..5b26b2692 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -1200,7 +1200,7 @@ void MainWindow::setActiveViewModeAction(QAction *action)
// his image back.
d->mViewMainPage->reset();
}
- setCaption(d->mUrlNavigator->locationUrl().adjusted(QUrl::RemoveScheme).toString());
+ setCaption(d->mUrlNavigator->locationUrl().toDisplayString(QUrl::PreferLocalFile));
}
d->autoAssignThumbnailProvider();
toggleSideBar(d->sideBarVisibility());