From: mpa Date: Mon, 18 May 2015 14:57:20 +0000 (+0300) Subject: INT PAL 0022812: TC6.4.0: prefernces work only for a new study (edited) X-Git-Tag: V7_6_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=490e5ac9c726dcd63fb1ee3387358cee149f8ad0;p=modules%2Fgui.git INT PAL 0022812: TC6.4.0: prefernces work only for a new study (edited) --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 04b1eb2cf..95465cd4d 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -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( sender() ); + if ( !send ) + return; QString aWinName = send->data().toString(); if ( theIsVisible && aWinName == "objectBrowser" ) objectBrowserColumnsVisibility();