diff options
authorSilas Lenz <[email protected]>2018-04-05 19:43:21 +0200
committerHenrik Fehlauer <[email protected]>2018-04-05 19:50:00 +0200
commita7819f6eb53cfa6cacfe542edb9dd73e9e2bd260 (patch)
parent7369f4719529b7d4dd5e9ee55e22e447383ef6bb (diff)
Update window title when changing selection in comparison modev18.03.90
Summary: The window title now updates with the currently selected image when the user changes the selection in comparison mode. BUG: 314724 Before: {F5743855} After: {F5743856} Test Plan: View and select different images with and without comparison mode and verify the title. Resize images by resizing the window or selecting/deselecting images while in comparison mode and verify the title. View and switch between images in normal mode to verify it still works, including title updates. Reviewers: #gwenview, ngraham, rkflx Reviewed By: #gwenview, ngraham, rkflx Subscribers: muhlenpfordt, ngraham, rkflx, #gwenview Tags: #gwenview Differential Revision:
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/documentview/documentview.cpp b/lib/documentview/documentview.cpp
index aac5f24..019f371 100644
--- a/lib/documentview/documentview.cpp
+++ b/lib/documentview/documentview.cpp
@@ -217,6 +217,9 @@ struct DocumentViewPrivate
void updateCaption()
+ if (!mCurrent) {
+ return;
+ }
QString caption;
Document::Ptr doc = mAdapter->document();
@@ -679,6 +682,7 @@ void DocumentView::setCurrent(bool value)
d->mCurrent = value;
if (value) {
+ d->updateCaption();