QmlProfiler: fix crash with context menu when nothing is selected

Change-Id: I8e5e47e1fcc620c823e7d3e1c5a643fb09d4b392
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Christiaan Janssen
2011-11-01 16:08:21 +01:00
parent 8cdd7b977f
commit 1e505b6563

View File

@@ -189,6 +189,7 @@ void QmlProfilerTool::showContextMenu(const QPoint &position)
}
QAction *selectedAction = menu.exec(position);
if (selectedAction) {
if (selectedAction == loadAction)
showLoadDialog();
if (selectedAction == saveAction)
@@ -198,6 +199,7 @@ void QmlProfilerTool::showContextMenu(const QPoint &position)
if (selectedAction == copyTableAction)
senderView->copyTableToClipboard();
}
}
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
RunConfiguration *runConfiguration)