~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to krita/ui/kis_node_model.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-16 10:51:29 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120716105129-es1ebubwiwlsfvv0
Tags: 1:2.4.92-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
{
127
127
    if(!m_d->dummiesFacade) return;
128
128
 
129
 
    QModelIndex index = indexFromNode(node);
130
 
    emit dataChanged(index, index);
 
129
    // Need to check here as the node might already be removed, but there might
 
130
    // still be some signals arriving from another thread
 
131
    if (m_d->dummiesFacade->hasDummyForNode(node)) {
 
132
        QModelIndex index = indexFromNode(node);
 
133
        emit dataChanged(index, index);
 
134
    }
131
135
}
132
136
 
133
137
void KisNodeModel::connectDummy(KisNodeDummy *dummy, bool needConnect)