Disconnect the output parser on taking it out of the chain

Reviewed-By: hunger
This commit is contained in:
dt
2010-06-07 17:27:24 +02:00
parent 2068792c86
commit fc67c5ca81

View File

@@ -59,6 +59,10 @@ void IOutputParser::appendOutputParser(IOutputParser *parser)
IOutputParser *IOutputParser::takeOutputParserChain()
{
IOutputParser *parser = m_parser;
disconnect(parser, SIGNAL(addOutput(QString)),
this, SLOT(outputAdded(QString)));
disconnect(parser, SIGNAL(addTask(ProjectExplorer::Task)),
this, SLOT(taskAdded(ProjectExplorer::Task)));
m_parser = 0;
return parser;
}