From bed8a060add10acae4be1efd77976c9306569c1f Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Tue, 6 Apr 2010 10:49:53 +0200
Subject: [PATCH] debugger: fix crash for 'Create Full Backtrace' on engines
 that don't support it.

---
 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 b1b54277a80..871e467995c 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()) {
-- 
GitLab