Commit d2a77162 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Do not switch back tools in Color To Alpha widget was not initialized fully

PaintOp box doesn't initialize the filter configuration widget fully,
so the temporary switching of the tools does not happen. So we shouldn't
request switching back in this case.

BUG:317953
parent 1bcf68fc
......@@ -52,7 +52,10 @@ KisWdgColorToAlpha::KisWdgColorToAlpha(QWidget * parent)
KisWdgColorToAlpha::~KisWdgColorToAlpha()
{
KoToolManager::instance()->switchBackRequested();
if (m_view) {
KoToolManager::instance()->switchBackRequested();
}
delete m_widget;
}
......
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