]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
INT PAL 0022812: TC6.4.0: prefernces work only for a new study (edited) V7_6_BR V7_6_0 V7_6_0rc1
authormpa <mpa@opencascade.com>
Mon, 18 May 2015 14:57:20 +0000 (17:57 +0300)
committermpa <mpa@opencascade.com>
Mon, 18 May 2015 14:57:20 +0000 (17:57 +0300)
src/SalomeApp/SalomeApp_Application.cxx

index 04b1eb2cf4cc4353e97f3c3999781254a4fab5c6..95465cd4dc788db4b39384b56ba6fc96999931a8 100644 (file)
@@ -1041,7 +1041,9 @@ void SalomeApp_Application::onLocalCheckIn()
 void SalomeApp_Application::onDockWindowVisibilityChanged( bool theIsVisible )
 {
   LightApp_Application::onDockWindowVisibilityChanged( theIsVisible );
-  QAction* send = (QAction*)sender();
+  QAction* send = ::qobject_cast<QAction*>( sender() );
+  if ( !send )
+    return;
   QString aWinName = send->data().toString();
   if ( theIsVisible && aWinName == "objectBrowser" )
     objectBrowserColumnsVisibility();