Fix SetCurFunc_by_Name implementation
This commit is contained in:
parent
145a50369e
commit
94e3016a5b
@ -44,8 +44,12 @@ public:
|
|||||||
}
|
}
|
||||||
void SetCurFunc_by_Name(QString v)
|
void SetCurFunc_by_Name(QString v)
|
||||||
{
|
{
|
||||||
if(m_current_func!=Project::get()->functions().end()) {
|
lFunction & funcs(Project::get()->functions());
|
||||||
m_current_func->name = v;
|
for(auto iter=funcs.begin(),fin=funcs.end(); iter!=fin; ++iter) {
|
||||||
|
if(iter->name==v) {
|
||||||
|
m_current_func = iter;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QDir installDir() {
|
QDir installDir() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user