Home
Phabricator
Search
Log In
Paste
P250
P170 replacement
Active
Public
Actions
Authored by
rkflx
on Aug 1 2018, 4:55 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/lib/contextmanager.cpp b/lib/contextmanager.cpp
index b04e4026..2243ea99 100644
--- a/lib/contextmanager.cpp
+++ b/lib/contextmanager.cpp
@@ -348,7 +348,6 @@ void ContextManager::selectUrlToSelect()
// and manually set current URL
d->mSelectionModel->clearSelection();
setCurrentUrl(d->mUrlToSelect);
- d->mUrlToSelect.clear();
}
}
diff --git a/lib/documentview/documentview.cpp b/lib/documentview/documentview.cpp
index fa9d3f5b..ee8dd85e 100644
--- a/lib/documentview/documentview.cpp
+++ b/lib/documentview/documentview.cpp
@@ -464,6 +464,10 @@ DocumentView::DocumentView(QGraphicsScene* scene)
d->setCurrentAdapter(new EmptyAdapter);
setAcceptDrops(true);
+
+ connect(DocumentFactory::instance(), &DocumentFactory::documentChanged, this, [this]() {
+ d->updateCaption();
+ });
}
DocumentView::~DocumentView()
rkflx
edited the content of this paste.
(Show Details)
Aug 1 2018, 4:55 AM
rkflx
changed the title of this paste from untitled to
P170 replacement
.
rkflx
mentioned this in
D9342: Make sure, a newly saved image is selected in ContextManager
.
Aug 1 2018, 4:57 AM
Log In to Comment