From 0c3f5d3c34830135f668fbdd15f2291d43265008 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 7 Oct 2015 10:31:33 +0300 Subject: [PATCH] INT PAL 52906: TC7.7.0: SIGSEGV at attempt to restrict selection by second shape in 'Create Group' dialog box --- src/GroupGUI/GroupGUI_GroupDlg.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.39.2