From e203c34b09194bee6c8e5a448ef37f59884f82bf Mon Sep 17 00:00:00 2001 From: mpa Date: Mon, 18 May 2015 17:57:20 +0300 Subject: [PATCH] INT PAL 0022812: TC6.4.0: prefernces work only for a new study (edited) --- src/SalomeApp/SalomeApp_Application.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.2