diff --git a/src/plugins/projectexplorer/outputwindow.cpp b/src/plugins/projectexplorer/outputwindow.cpp index e9b84f8baad4fcad2471f26029627b677b9bf534..ff224150e8e3ba714ffe498f50937deaf3bfefff 100644 --- a/src/plugins/projectexplorer/outputwindow.cpp +++ b/src/plugins/projectexplorer/outputwindow.cpp @@ -246,6 +246,8 @@ void OutputPane::createNewOutputWindow(RunControl *rc) this, SLOT(runControlStarted())); connect(rc, SIGNAL(finished()), this, SLOT(runControlFinished())); + connect(rc, SIGNAL(appendMessage(ProjectExplorer::RunControl*,QString,ProjectExplorer::OutputFormat)), + this, SLOT(appendMessage(ProjectExplorer::RunControl*,QString,ProjectExplorer::OutputFormat))); // First look if we can reuse a tab const int size = m_runControlTabs.size(); diff --git a/src/plugins/projectexplorer/outputwindow.h b/src/plugins/projectexplorer/outputwindow.h index c41f93a30a90958d66bb270d0a607295939e5d82..61ff8b1e0cbcf68dd98f01e27a8d5aace90a689a 100644 --- a/src/plugins/projectexplorer/outputwindow.h +++ b/src/plugins/projectexplorer/outputwindow.h @@ -89,6 +89,7 @@ public: void goToPrev(); bool canNavigate(); + void createNewOutputWindow(RunControl *rc); void showTabFor(RunControl *rc); bool aboutToClose() const; @@ -99,7 +100,6 @@ signals: public slots: // ApplicationOutput specifics - void createNewOutputWindow(RunControl *rc); void projectRemoved(); void appendMessage(ProjectExplorer::RunControl *rc, const QString &out, diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index ff6d80f1c40ec31bafed3c36d4982f4bb093afc1..c7a719120f3119b5c3e1dfd23f6ae4b2d09d4d6a 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1386,13 +1386,7 @@ void ProjectExplorerPlugin::startRunControl(RunControl *runControl, const QStrin if (runMode == ProjectExplorer::Constants::RUNMODE) d->m_outputPane->popup(false); d->m_outputPane->showTabFor(runControl); - - connect(runControl, SIGNAL(appendMessage(ProjectExplorer::RunControl*,QString,ProjectExplorer::OutputFormat)), - d->m_outputPane, SLOT(appendMessage(ProjectExplorer::RunControl*,QString,ProjectExplorer::OutputFormat))); - - connect(runControl, SIGNAL(finished()), - this, SLOT(runControlFinished())); - + connect(runControl, SIGNAL(finished()), this, SLOT(runControlFinished())); runControl->start(); emit updateRunActions(); }