From: vsr Date: Wed, 7 Oct 2015 07:31:33 +0000 (+0300) Subject: INT PAL 52906: TC7.7.0: SIGSEGV at attempt to restrict selection by second shape... X-Git-Tag: V7_7_0_WIN~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c3f5d3c34830135f668fbdd15f2291d43265008;p=modules%2Fgeom.git INT PAL 52906: TC7.7.0: SIGSEGV at attempt to restrict selection by second shape in 'Create Group' dialog box --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 984bc28c2..40463f32a 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -446,7 +446,7 @@ void GroupGUI_GroupDlg::ActivateThisDialog() //================================================================================= void GroupGUI_GroupDlg::SetEditCurrentArgument() { - QPushButton* send = (QPushButton*)sender(); + QPushButton* send = qobject_cast( sender() ); if (send == mySelBtn) { myEditCurrentArgument = myMainName; @@ -472,7 +472,8 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument() // activateSelection(); if(myEditCurrentArgument) { myEditCurrentArgument->setFocus(); - send->setDown(true); + if ( send ) + send->setDown(true); } updateState();