Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[modules/gui.git]
/
src
/
SUIT
/
SUIT_ViewManager.cxx
diff --git
a/src/SUIT/SUIT_ViewManager.cxx
b/src/SUIT/SUIT_ViewManager.cxx
index a2b74dd3f77e92f57ab73d4a59c5b41e7bb020cc..cab5a470b0dd8f3228c1e40faf75d014cf124a1f 100755
(executable)
--- a/
src/SUIT/SUIT_ViewManager.cxx
+++ b/
src/SUIT/SUIT_ViewManager.cxx
@@
-64,15
+64,25
@@
SUIT_ViewWindow* SUIT_ViewManager::createViewWindow()
{
SUIT_ViewWindow* aView = myViewModel->createView(myDesktop);
{
SUIT_ViewWindow* aView = myViewModel->createView(myDesktop);
- if ( !insertView( aView ) )
+ if ( !insertView( aView ) )
{
delete aView;
delete aView;
+ return 0;
+ }
setViewName( aView );
//myDesktop->addViewWindow( aView );
//it is done automatically during creation of view
aView->setViewManager(this);
setViewName( aView );
//myDesktop->addViewWindow( aView );
//it is done automatically during creation of view
aView->setViewManager(this);
+
emit viewCreated(aView);
emit viewCreated(aView);
+
+ // Special treatment for the case when <aView> is the first one in this view manager
+ // -> call onWindowActivated() directly, because somebody may always want
+ // to use getActiveView()
+ if ( !myActiveView )
+ onWindowActivated( aView );
+
return aView;
}
return aView;
}