Commit 67b8335b authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix a crash in thumbnail generation

The dirty layers might have been removed from the image between
the dirty notification and the thumbnails update pass.

parent 1245a9a0
Pipeline #265715 canceled with stage
in 14 minutes and 47 seconds
......@@ -1106,7 +1106,8 @@ void LayerBox::notifyThumbnailDirty()
void LayerBox::updateDirtyThumbnails()
Q_FOREACH (const QModelIndex &index, m_dirtyThumbnailNodes) {
Q_FOREACH (const QPersistentModelIndex &index, m_dirtyThumbnailNodes) {
if (!index.isValid()) continue;
......@@ -187,7 +187,7 @@ private:
KisNodeWSP m_savedNodeBeforeEditSelectionMode;
bool m_blockOpacityUpdate {false};
KisSignalAutoConnectionsStore m_activeNodeConnections;
QSet<QModelIndex> m_dirtyThumbnailNodes;
QSet<QPersistentModelIndex> m_dirtyThumbnailNodes;
KisIdleWatcher m_idleWatcher;
Supports Markdown
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