From: jfa Date: Tue, 11 Oct 2005 10:30:06 +0000 (+0000) Subject: Prevent double calling of onDesktopClosing() slot of application X-Git-Tag: BR-D5-38-2003_D2005-12-19~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6b2c5515dd25a90062becc34cee1410c3dc5523e;p=modules%2Fgui.git Prevent double calling of onDesktopClosing() slot of application --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index ec64212c9..8bf643109 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -40,9 +40,6 @@ myActiveViewMgr( 0 ) { STD_MDIDesktop* desk = new STD_MDIDesktop(); - connect( desk, SIGNAL( closing( SUIT_Desktop*, QCloseEvent* ) ), - this, SLOT( onDesktopClosing( SUIT_Desktop*, QCloseEvent* ) ) ); - setDesktop( desk ); } diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 8a5a757fa..c77aa23e1 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -178,9 +178,6 @@ myPrefs( 0 ) myAccel->setActionKey( SUIT_Accel::RotateUp, ALT+Key_Up, SVTK_Viewer::Type() ); myAccel->setActionKey( SUIT_Accel::RotateDown, ALT+Key_Down, SVTK_Viewer::Type() ); - connect( desk, SIGNAL( closing( SUIT_Desktop*, QCloseEvent* ) ), - this, SLOT( onDesktopClosing( SUIT_Desktop*, QCloseEvent* ) ) ); - connect( mySelMgr, SIGNAL( selectionChanged() ), this, SLOT( onSelection() ) ); }