Commit 2cd51b65 authored by Alexander Neundorf's avatar Alexander Neundorf

-dont insert targets twice into thwe menu

-sort the targets alphabetically
-my first kdevelop commit ever :-)

Alex
parent 5369faf2
......@@ -672,11 +672,14 @@ void CustomProjectPart::updateTargetMenu()
//}
if (re.search(str) != -1)
{
kdDebug(9025) << "Adding target: " << re.cap(1) << endl;
m_targets += re.cap(1).simplifyWhiteSpace();
QString tmpTarget=re.cap(1).simplifyWhiteSpace();
kdDebug(9025) << "Adding target: " << tmpTarget << endl;
if (m_targets.find(tmpTarget)==m_targets.end())
m_targets += tmpTarget;
}
}
f.close();
m_targets.sort();
}
int id = 0;
......
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