debugger: fix crash for 'Create Full Backtrace' on engines that don't support

it.
This commit is contained in:
hjk
2010-04-06 10:49:53 +02:00
parent 7c4eb002e2
commit bed8a060ad

View File

@@ -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()) {