Commit 4c9cd69c authored by Sharaf Zaman's avatar Sharaf Zaman
Browse files

Crashfix: closing and reopening popup palette


(cherry picked from commit 626dec9f)
parent 7dd75f9d
Pipeline #86316 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);
......@@ -182,7 +182,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