Commit 925037ac by Sebastian Eichelbaum

[FIX] - crashed modules do not get removed automatically

parent c66c71ef
......@@ -166,7 +166,7 @@ void WQtTreeItem::updateState()
}
// is finished?
if ( !m_module->isRunning().get() && m_needPostDeleteEvent )
if ( m_deleteInProgress && !m_module->isRunning().get() && m_needPostDeleteEvent )
{
m_needPostDeleteEvent = false; // this ensures the event is only posted once
QCoreApplication::postEvent( WQt4Gui::getMainWindow()->getDatasetBrowser(), new WModuleDeleteEvent( this ) );
......
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