forked from qt-creator/qt-creator
Disconnect the output parser on taking it out of the chain
Reviewed-By: hunger
This commit is contained in:
@@ -59,6 +59,10 @@ void IOutputParser::appendOutputParser(IOutputParser *parser)
|
|||||||
IOutputParser *IOutputParser::takeOutputParserChain()
|
IOutputParser *IOutputParser::takeOutputParserChain()
|
||||||
{
|
{
|
||||||
IOutputParser *parser = m_parser;
|
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;
|
m_parser = 0;
|
||||||
return parser;
|
return parser;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user