debugger: make Add to Watchwindow menu entry work again

This commit is contained in:
hjk
2009-12-11 15:31:37 +01:00
parent b757b34640
commit abdd3d9d5b
2 changed files with 34 additions and 7 deletions

View File

@@ -803,8 +803,14 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
cmd = am->registerAction(actions.watchAction,
Constants::ADD_TO_WATCH, cppeditorcontext);
//cmd->setDefaultKeySequence(QKeySequence(tr("ALT+D,ALT+W")));
cmd->action()->setEnabled(true);
cmd->setDefaultKeySequence(QKeySequence(tr("ALT+D,ALT+W")));
mdebug->addAction(cmd);
// QTCREATORBUG-342 asks for that unconditionally
//ActionContainer *editorContextMenu =
// am->actionContainer(CppEditor::Constants::M_CONTEXT);
//editorContextMenu->addAction(cmd);
//cmd->setAttribute(Command::CA_Hide);
// Views menu
cmd = am->registerAction(sep, QLatin1String("Debugger.Sep.Views"), globalcontext);