else {
// second case : get empty initial view frame as new ViewFrame object
aViewFrame = myInitialViewFrame;
+ // mkr : IPAL12991 -->
+ SUPERVGraph_View* view = myInitialViewFrame->getViewWidget();
+ if (view)
+ unregisterGraph(dynamic_cast<SUPERVGUI_Main*>(view));
+ // mkr : IPAL12991 <--
// mkr : PAL8237 : remove first "gag" Main from children
// srn: commented as it cases on application exit "X Windows error"
//aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() );
else {
// 2. get empty initial view frame as new ViewFrame object
aViewFrame = myInitialViewFrame;
+ // mkr : IPAL12991 -->
+ if ( myInitialViewFrame ) {
+ SUPERVGraph_View* view = myInitialViewFrame->getViewWidget();
+ if (view)
+ unregisterGraph(dynamic_cast<SUPERVGUI_Main*>(view));
+ }
+ // mkr : IPAL12991 <--
// mkr : PAL8237 : remove first "gag" Main from children
// srn: commented as it cases on application exit "X Windows error"
//aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() );