[graphics/gwenview/release/26.08] 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 e4fa510cde122eab91a997a5fef706fd6bfc925b by Friedrich W. H. Kossebau.
Committed on 30/07/2026 at 20:30.
Pushed by kossebau into branch 'release/26.08'.
On switch to browser mode: keep scheme for non-local URLs in window title
(cherry picked from commit 7788160ba908e0f0cf65bfb440c3b41167146dfb)
M +1 -1 app/mainwindow.cpp
https://invent.kde.org/graphics/gwenview/-/commit/e4fa510cde122eab91a997a5fef706fd6bfc925b
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 56e79eb91..fd6dfc3dd 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -1203,7 +1203,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());