]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
INT PAL 52906: TC7.7.0: SIGSEGV at attempt to restrict selection by second shape...
authorvsr <vsr@opencascade.com>
Wed, 7 Oct 2015 07:31:33 +0000 (10:31 +0300)
committervsr <vsr@opencascade.com>
Wed, 7 Oct 2015 07:31:33 +0000 (10:31 +0300)
src/GroupGUI/GroupGUI_GroupDlg.cxx

index 984bc28c23591e7eaf61506755c2110b083a63a3..40463f32a2bb9de1ee547eeffc5b3c423d8ed52a 100644 (file)
@@ -446,7 +446,7 @@ void GroupGUI_GroupDlg::ActivateThisDialog()
 //=================================================================================
 void GroupGUI_GroupDlg::SetEditCurrentArgument()
 {
-  QPushButton* send = (QPushButton*)sender();
+  QPushButton* send = qobject_cast<QPushButton*>( 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();