Commit 2068792c authored by dt's avatar dt
Browse files

Don't remove directories that were added multiple times

parent 72c74b7d
......@@ -110,14 +110,14 @@ void GnuMakeParser::stdError(const QString &line)
void GnuMakeParser::addDirectory(const QString &dir)
{
if (dir.isEmpty() || m_directories.contains(dir))
if (dir.isEmpty())
return;
m_directories.append(dir);
}
void GnuMakeParser::removeDirectory(const QString &dir)
{
m_directories.removeAll(dir);
m_directories.removeOne(dir);
}
void GnuMakeParser::taskAdded(const Task &task)
......
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