Commit d0de41fa authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix Isolated Mode when multiple windows are open

Only active window should restart isolated mode, not all of them

BUG:408150
parent 4ff2973d
......@@ -530,6 +530,12 @@ void KisNodeManager::slotUpdateIsolateModeAction()
void KisNodeManager::slotTryRestartIsolatedMode()
{
/**
* It might be that we have multiple Krita windows open. In such a case
* only the currently active one should restart isolated mode
*/
if (!m_d->view->mainWindow()->isActiveWindow()) return;
KisNodeSP isolatedRootNode = m_d->view->image()->isolatedModeRoot();
if (!isolatedRootNode && !m_d->lastRequestedIsolatedModeStatus) return;
......
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