Commit 53ff60a2 authored by Tusooa Zhu's avatar Tusooa Zhu 🔼

Switch to last activated node when switching snapshots

parent 7e4ad33a
......@@ -27,6 +27,7 @@
#include <KisDocument.h>
#include <KisView.h>
#include <KisViewManager.h>
#include <kis_node_manager.h>
struct KisSnapshotModel::Private
{
......@@ -67,6 +68,7 @@ bool KisSnapshotModel::Private::switchToDocument(QPointer<KisDocument> doc)
KisDocument *curDoc = curDocument();
if (curDoc && doc) {
curDoc->copyFromDocument(*doc);
view->viewManager()->nodeManager()->slotNonUiActivatedNode(curDoc->preActivatedNode());
}
// FIXME: more things need to be done
return true;
......
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