A lot of work done

This commit is contained in:
2010-06-16 17:29:07 +02:00
parent c353c02d5b
commit 742c95b2c7
10 changed files with 152 additions and 21 deletions

0
model/Account.cpp Executable file → Normal file
View File

0
model/Account.h Executable file → Normal file
View File

View 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
View File