forked from qt-creator/qt-creator
AnalyzerManager: Export switching to analyzer mode
This commit is contained in:
@@ -506,10 +506,8 @@ void AnalyzerManager::AnalyzerManagerPrivate::startTool()
|
||||
{
|
||||
QTC_ASSERT(q->currentTool(), return);
|
||||
|
||||
// make sure our mode is shown
|
||||
m_outputpane->popup();
|
||||
if (m_mode)
|
||||
ModeManager::instance()->activateMode(m_mode->id());
|
||||
// make sure mode is shown
|
||||
q->showMode();
|
||||
|
||||
ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance();
|
||||
|
||||
@@ -882,4 +880,11 @@ AnalyzerRunControl *AnalyzerManager::createAnalyzer(const AnalyzerStartParameter
|
||||
return d->m_runControlFactory->create(sp, rc);
|
||||
}
|
||||
|
||||
void AnalyzerManager::showMode()
|
||||
{
|
||||
if (d->m_mode)
|
||||
ModeManager::instance()->activateMode(d->m_mode->id());
|
||||
d->m_outputpane->popup();
|
||||
}
|
||||
|
||||
#include "analyzermanager.moc"
|
||||
|
||||
@@ -100,6 +100,7 @@ public:
|
||||
// Used by Maemo analyzer support.
|
||||
AnalyzerRunControl *createAnalyzer(const AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *rc = 0);
|
||||
void showMode();
|
||||
|
||||
public slots:
|
||||
void startTool();
|
||||
|
||||
Reference in New Issue
Block a user