Add profession bindings and missing for user
This commit is contained in:
parent
91a5de78e9
commit
59344e6464
3 changed files with 46 additions and 10 deletions
|
|
@ -86,13 +86,6 @@ bool User::setCurrentProfession(PID pid) {
|
|||
}
|
||||
|
||||
void User::removeProfession(PID pid) {
|
||||
// QMutableVectorIterator<UserProfession> i(mProfessions);
|
||||
// while (i.hasNext()) {
|
||||
// if (i.value().getProfession() == pid) {
|
||||
// i.remove();
|
||||
// }
|
||||
// }
|
||||
|
||||
auto pred = [pid](UserProfession p) {
|
||||
return p.getProfession() == pid;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue