diff options
author | hjk <qtc-committer@nokia.com> | 2010-04-06 10:49:53 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-04-09 17:40:12 +0200 |
commit | 7ca26e0f8bbec2b69c50c53205bf35603a2fe024 (patch) | |
tree | 7231e6083aa12bbb9187a7aec20b044894f8db64 | |
parent | 275cd53c9f641b22159919b5e916c9fa1a3632b1 (diff) | |
download | qt-creator-7ca26e0f8bbec2b69c50c53205bf35603a2fe024.tar.gz |
debugger: fix crash for 'Create Full Backtrace' on engines that don't support
it.
(cherry picked from commit bed8a060add10acae4be1efd77976c9306569c1f)
-rw-r--r-- | src/plugins/debugger/stackwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp index b1b54277a8..871e467995 100644 --- a/src/plugins/debugger/stackwindow.cpp +++ b/src/plugins/debugger/stackwindow.cpp @@ -105,7 +105,8 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) QAction *actCopyContents = menu.addAction(tr("Copy Contents to Clipboard")); actCopyContents->setEnabled(model() != 0); - menu.addAction(theDebuggerAction(CreateFullBacktrace)); + if (engineCapabilities & CreateFullBacktraceCapability) + menu.addAction(theDebuggerAction(CreateFullBacktrace)); QAction *actShowMemory = menu.addAction(QString()); if (address.isEmpty()) { |