A lot of work done
This commit is contained in:
0
model/Account.cpp
Executable file → Normal file
0
model/Account.cpp
Executable file → Normal file
0
model/Account.h
Executable file → Normal file
0
model/Account.h
Executable file → Normal file
@@ -208,6 +208,14 @@ User* Database::LoadUser(wxString name)
|
||||
|
||||
set.Finalize();
|
||||
|
||||
req = _("SELECT name, value FROM preference WHERE type='category_color' AND user='") + user->_id + _("' ORDER BY value ASC");
|
||||
EXECUTE_SQL_QUERY_WITH_CODE(req, set, NULL, {delete user;}, {delete user;});
|
||||
|
||||
while (set.NextRow())
|
||||
user->_preferences._colors[set.GetAsString(_("name"))] = wxColour(set.GetAsString(_("value")));
|
||||
|
||||
set.Finalize();
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
|
0
model/Preferences.cpp
Normal file → Executable file
0
model/Preferences.cpp
Normal file → Executable file
Reference in New Issue
Block a user