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
...@@ -189,6 +189,7 @@ void QmlProfilerTool::showContextMenu(const QPoint &position) ...@@ -189,6 +189,7 @@ void QmlProfilerTool::showContextMenu(const QPoint &position)
} }
QAction *selectedAction = menu.exec(position); QAction *selectedAction = menu.exec(position);
if (selectedAction) {
if (selectedAction == loadAction) if (selectedAction == loadAction)
showLoadDialog(); showLoadDialog();
if (selectedAction == saveAction) if (selectedAction == saveAction)
...@@ -197,6 +198,7 @@ void QmlProfilerTool::showContextMenu(const QPoint &position) ...@@ -197,6 +198,7 @@ void QmlProfilerTool::showContextMenu(const QPoint &position)
senderView->copyRowToClipboard(); senderView->copyRowToClipboard();
if (selectedAction == copyTableAction) if (selectedAction == copyTableAction)
senderView->copyTableToClipboard(); senderView->copyTableToClipboard();
}
} }
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp, IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
......
Supports Markdown
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