Fix SetCurFunc_by_Name implementation

This commit is contained in:
nemerle 2016-04-26 13:36:57 +02:00
parent 145a50369e
commit 94e3016a5b

View File

@ -44,8 +44,12 @@ public:
}
void SetCurFunc_by_Name(QString v)
{
if(m_current_func!=Project::get()->functions().end()) {
m_current_func->name = v;
lFunction & funcs(Project::get()->functions());
for(auto iter=funcs.begin(),fin=funcs.end(); iter!=fin; ++iter) {
if(iter->name==v) {
m_current_func = iter;
return;
}
}
}
QDir installDir() {