Skip to content
Snippets Groups Projects
Commit 1e505b65 authored by Christiaan Janssen's avatar Christiaan Janssen
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 8cdd7b97
No related branches found
No related tags found
No related merge requests found
...@@ -189,14 +189,16 @@ void QmlProfilerTool::showContextMenu(const QPoint &position) ...@@ -189,14 +189,16 @@ void QmlProfilerTool::showContextMenu(const QPoint &position)
} }
QAction *selectedAction = menu.exec(position); QAction *selectedAction = menu.exec(position);
if (selectedAction == loadAction) if (selectedAction) {
showLoadDialog(); if (selectedAction == loadAction)
if (selectedAction == saveAction) showLoadDialog();
showSaveDialog(); if (selectedAction == saveAction)
if (selectedAction == copyRowAction) showSaveDialog();
senderView->copyRowToClipboard(); if (selectedAction == copyRowAction)
if (selectedAction == copyTableAction) senderView->copyRowToClipboard();
senderView->copyTableToClipboard(); if (selectedAction == copyTableAction)
senderView->copyTableToClipboard();
}
} }
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp, IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment