INT PAL 52906: TC7.7.0: SIGSEGV at attempt to restrict selection by second shape in 'Create Group' dialog box

This commit is contained in:
vsr 2015-10-07 10:31:33 +03:00
parent 1db636b7ff
commit 0c3f5d3c34

View File

@ -446,7 +446,7 @@ void GroupGUI_GroupDlg::ActivateThisDialog()
//================================================================================= //=================================================================================
void GroupGUI_GroupDlg::SetEditCurrentArgument() void GroupGUI_GroupDlg::SetEditCurrentArgument()
{ {
QPushButton* send = (QPushButton*)sender(); QPushButton* send = qobject_cast<QPushButton*>( sender() );
if (send == mySelBtn) { if (send == mySelBtn) {
myEditCurrentArgument = myMainName; myEditCurrentArgument = myMainName;
@ -472,7 +472,8 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument()
// activateSelection(); // activateSelection();
if(myEditCurrentArgument) { if(myEditCurrentArgument) {
myEditCurrentArgument->setFocus(); myEditCurrentArgument->setFocus();
send->setDown(true); if ( send )
send->setDown(true);
} }
updateState(); updateState();