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