Commit 98c535e5 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Remove assert from the filter model

We can actually have a valid state with no layer selected when
removing the last layer of the document. This state is temporary
but is valid.
parent 3ab77958
......@@ -129,7 +129,8 @@ void KisNodeFilterProxyModel::setAcceptedLabels(const QList<int> &value)
void KisNodeFilterProxyModel::setActiveNode(KisNodeSP node)
// the new node may temporary become null when the last layer
// of the document in removed
m_d->pendingActiveNode = node;
if (node && indexFromNode(node).isValid()) {
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