Salome HOME
projects
/
modules
/
gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
419cff6
)
bos #18834 [CEA] Restore object browser state when switching from light module to...
author
vsr
<vsr@opencascade.com>
Thu, 2 Apr 2020 11:06:58 +0000
(14:06 +0300)
committer
vsr
<vsr@opencascade.com>
Thu, 2 Apr 2020 11:06:58 +0000
(14:06 +0300)
src/LightApp/LightApp_Application.cxx
patch
|
blob
|
history
diff --git
a/src/LightApp/LightApp_Application.cxx
b/src/LightApp/LightApp_Application.cxx
index 10cca2c578fa0242da27f6c9101701a0d58a0821..7312069457215d3e81b43fc3835938a7aeef628a 100644
(file)
--- a/
src/LightApp/LightApp_Application.cxx
+++ b/
src/LightApp/LightApp_Application.cxx
@@
-4115,10
+4115,14
@@
void LightApp_Application::updateWindows()
for ( WinMap::ConstIterator it = myWin.begin(); it != myWin.end(); ++it )
{
QWidget* wid = it.value();
+ if ( !wid )
+ continue;
if ( winMap.contains( it.key() ) )
wid->setVisible( true );
- else
+ else
if ( !activeStudy() )
delete wid;
+ else
+ wid->setVisible( false );
}
loadDockWindowsState();