Commit 6f209cc7 authored by Boudewijn Rempt's avatar Boudewijn Rempt

unset preselected layer

parent 2764c1cd
...@@ -679,6 +679,7 @@ void KisView2::slotLoadingFinished() ...@@ -679,6 +679,7 @@ void KisView2::slotLoadingFinished()
} }
KisNodeSP activeNode = m_d->doc->preActivatedNode(); KisNodeSP activeNode = m_d->doc->preActivatedNode();
m_d->doc->setPreActivatedNode(0); // to make sure that we don't keep a reference to a layer the user can later delete.
if (!activeNode) { if (!activeNode) {
activeNode = image()->rootLayer()->firstChild(); activeNode = image()->rootLayer()->firstChild();
......
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