~pasnox/monkeystudio/trunk

« back to all changes in this revision

Viewing changes to monkey/src/xupmanager/core/XUPProjectItem.cpp

  • Committer: pasnox
  • Date: 2012-04-17 17:44:30 UTC
  • Revision ID: svn-v4:eb2ae826-2224-0410-8894-813e3fd817a8:v2/trunk:4418
Merge from branches/dev 4397 into trunk, ready to realease version 1.9.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
524
524
    const QString name = QString( "%1_generated_separator" ).arg( i++ );
525
525
    QAction* action = MonkeyCore::menuBar()->action( QString( "%1/%2" ).arg( mnu ).arg( name ) );
526
526
    action->setSeparator( true );
 
527
    Q_ASSERT( !mInstalledActions.keys().contains( name ) );
527
528
    mInstalledActions[ name ] = action;
528
529
    return action;
529
530
}
692
693
 
693
694
void XUPProjectItem::executeCommand( const QString& name )
694
695
{
695
 
    mInstalledActions.value( name )->trigger();
 
696
    QAction* action = mInstalledActions.value( name );
 
697
    
 
698
    if ( action ) {
 
699
        action->trigger();
 
700
    }
696
701
}
697
702
 
698
703
void XUPProjectItem::projectCustomActionTriggered()