forked from qt-creator/qt-creator
analyzer: handle all possibilities to start qml profiler in QmlProfilerTool
Change-Id: I286bdc4dc3fbab2e784e72f47ff02644cc2899e5 Reviewed-on: http://codereview.qt.nokia.com/1096 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -450,7 +450,6 @@ void AnalyzerManagerPrivate::startLocalTool(IAnalyzerTool *tool, StartMode mode)
|
||||
QTC_ASSERT(index >= 0, return);
|
||||
QTC_ASSERT(index < m_tools.size(), return);
|
||||
QTC_ASSERT(tool == m_currentTool, return);
|
||||
QTC_ASSERT(mode == StartLocal, /**/);
|
||||
|
||||
// Make sure mode is shown.
|
||||
q->showMode();
|
||||
@@ -587,6 +586,7 @@ void AnalyzerManagerPrivate::selectAction(int index)
|
||||
|
||||
void AnalyzerManagerPrivate::selectAction(QAction *action)
|
||||
{
|
||||
AnalyzerManager::showMode();
|
||||
selectTool(m_toolFromAction[action], m_modeFromAction[action]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user