forked from qt-creator/qt-creator
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:
committed by
Kai Koehne
parent
6e20eb7cf4
commit
d2514e18f1
@@ -188,6 +188,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)
|
|||||||
if (selectedAction == copyTableAction)
|
if (selectedAction == copyTableAction)
|
||||||
senderView->copyTableToClipboard();
|
senderView->copyTableToClipboard();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
|
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
|
||||||
RunConfiguration *runConfiguration)
|
RunConfiguration *runConfiguration)
|
||||||
|
Reference in New Issue
Block a user