Commit 02ea9144 authored by Kai Koehne's avatar Kai Koehne

AnalyzerManager: Export switching to analyzer mode

parent e5679e8a
......@@ -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();
......
Markdown is supported
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