summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/moduleswindow.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-10-07 13:36:48 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-10-07 13:36:48 +0200
commit1fb8f60e03a267941822eb96ab8e6faedc6036f1 (patch)
tree3c126217e810a38919212ab7d915972011ac3f1d /src/plugins/debugger/moduleswindow.cpp
parente2e9c773231ced6419dacc5edce273bf55912932 (diff)
downloadqt-creator-1fb8f60e03a267941822eb96ab8e6faedc6036f1.tar.gz
Debugger: Fix crash toggling Stack/"Derefence Pointers" without project
Enable debugger actions correctly. Reviewed-by: hjk <qtc-committer@nokia.com>
Diffstat (limited to 'src/plugins/debugger/moduleswindow.cpp')
-rw-r--r--src/plugins/debugger/moduleswindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/debugger/moduleswindow.cpp b/src/plugins/debugger/moduleswindow.cpp
index f5d48db088..6d46dda03c 100644
--- a/src/plugins/debugger/moduleswindow.cpp
+++ b/src/plugins/debugger/moduleswindow.cpp
@@ -105,11 +105,15 @@ void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev)
if (index.isValid())
name = model()->data(index).toString();
+
QMenu menu;
+ const bool enabled = Debugger::DebuggerManager::instance()->debuggerActionsEnabled();
QAction *act0 = new QAction(tr("Update module list"), &menu);
- QAction *act3 = new QAction(tr("Show source files for module \"%1\"").arg(name),
- &menu);
+ act0->setEnabled(enabled);
+ QAction *act3 = new QAction(tr("Show source files for module \"%1\"").arg(name), &menu);
+ act3->setEnabled(enabled);
QAction *act4 = new QAction(tr("Load symbols for all modules"), &menu);
+ act4->setEnabled(enabled);
QAction *act5 = 0;
QAction *act6 = 0;
QAction *act7 = 0;