I did the obvious and used the user commands page as a template and edited it to my needs. Theres just one thing I can't quite figure out. I see frequent calls to the HubManager::save() function eg.
Code: Select all
void updateUserCommand(const UserCommand& uc) {
bool nosave = true;
Lock l(cs);
for(UserCommand::Iter i = userCommands.begin(); i != userCommands.end(); ++i) {
if(i->getId() == uc.getId()) {
*i = uc;
nosave = uc.isSet(UserCommand::FLAG_NOSAVE);
break;
}
}
if(!nosave)
save();
}
What i don't get is where is the flag set? I can see lots of places where the state of the flag is accessed, but not where it is actually changed.
I'm probably missing something really obvious here... But can anyone help?