treeModel->setAppropriate( EntryCol, Qtx::Toggled );
}*/
- if ( myIsFirstActivate ) {
- updateModuleVisibilityState();
- myIsFirstActivate = false;
- }
-
return res;
}
SUIT_DataBrowser* ob = app->objectBrowser();
if ( !ob || !ob->model() ) return;
+ if ( !myIsFirstActivate )
+ return;
+
+ myIsFirstActivate = false;
+
// connect to click on item
connect( ob->model(), SIGNAL( clicked( SUIT_DataObject*, int ) ),
this, SLOT( onObjectClicked( SUIT_DataObject*, int ) ), Qt::UniqueConnection );
+ // connect to click on item
+ connect( ob, SIGNAL( destroyed( QObject* ) ),
+ this, SLOT( onOBDestroyed() ), Qt::UniqueConnection );
SUIT_DataObject* rootObj = ob->root();
if ( !rootObj ) return;
if ( id != -1 )
startOperation( id );
}
+
+void LightApp_Module::onOBDestroyed()
+{
+ myIsFirstActivate = true;
+}