From 7ca26e0f8bbec2b69c50c53205bf35603a2fe024 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 6 Apr 2010 10:49:53 +0200 Subject: debugger: fix crash for 'Create Full Backtrace' on engines that don't support it. (cherry picked from commit bed8a060add10acae4be1efd77976c9306569c1f) --- src/plugins/debugger/stackwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) { -- cgit v1.2.1