Commit 626dec9f authored by Sharaf Zaman's avatar Sharaf Zaman
Browse files

Crashfix: closing and reopening popup palette

BUG:443402
parent c2194543
Pipeline #86298 skipped with stage
......@@ -120,6 +120,9 @@ KisPopupPalette::KisPopupPalette(KisViewManager* viewManager, KisCoordinatesConv
connect(m_resourceManager, SIGNAL(updatePalettes()), this, SLOT(slotUpdate()));
connect(m_resourceManager, SIGNAL(hidePalettes()), this, SIGNAL(finished()));
// Instances of `this` rely on finished() to be detached and its lifetime is associated with `parent`
connect(parent, SIGNAL(destroyed(QObject *)), this, SIGNAL(finished()), Qt::DirectConnection);
setCursor(Qt::ArrowCursor);
setMouseTracking(true);
setHoveredPreset(-1);
......
......@@ -183,7 +183,7 @@ Q_SIGNALS:
void sigChangefGColor(const KoColor&);
void sigUpdateCanvas();
void zoomLevelChanged(int);
void finished(); // KisPopupWidgetInterface.
void finished() override; // KisPopupWidgetInterface.
public Q_SLOTS:
void slotUpdateIcons();
......
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