Commit d2514e18 authored by Christiaan Janssen's avatar Christiaan Janssen Committed by Kai Koehne
Browse files

QmlProfiler: fix crash with context menu when nothing is selected



Change-Id: I8e5e47e1fcc620c823e7d3e1c5a643fb09d4b392
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 6e20eb7c
......@@ -188,14 +188,16 @@ void QmlProfilerTool::showContextMenu(const QPoint &position)
}
QAction *selectedAction = menu.exec(position);
if (selectedAction == loadAction)
showLoadDialog();
if (selectedAction == saveAction)
showSaveDialog();
if (selectedAction == copyRowAction)
senderView->copyRowToClipboard();
if (selectedAction == copyTableAction)
senderView->copyTableToClipboard();
if (selectedAction) {
if (selectedAction == loadAction)
showLoadDialog();
if (selectedAction == saveAction)
showSaveDialog();
if (selectedAction == copyRowAction)
senderView->copyRowToClipboard();
if (selectedAction == copyTableAction)
senderView->copyTableToClipboard();
}
}
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment