forked from qt-creator/qt-creator
Add a save macro menu item, and remove the 'show save dialog' option in macro plugin
Merge-request: 240 Reviewed-by: con <qtc-committer@nokia.com>
This commit is contained in:
committed by
con
parent
0444335aba
commit
23e024de64
@@ -115,6 +115,12 @@ bool MacrosPlugin::initialize(const QStringList &arguments, QString *error_messa
|
||||
mmacrotools->addAction(command);
|
||||
connect(executeLastMacro, SIGNAL(triggered()), m_macroManager, SLOT(executeLastMacro()));
|
||||
|
||||
QAction *saveLastMacro = new QAction(tr("Save Last Macro"), this);
|
||||
saveLastMacro->setEnabled(false);
|
||||
command = am->registerAction(saveLastMacro, Constants::SAVE_LAST_MACRO, textContext);
|
||||
mmacrotools->addAction(command);
|
||||
connect(saveLastMacro, SIGNAL(triggered()), m_macroManager, SLOT(saveLastMacro()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user