some fixes

This commit is contained in:
Max-Wilhelm Bruker
2010-03-08 20:17:48 +01:00
parent d1a8b6602b
commit 4bf4bbea6a
8 changed files with 37 additions and 24 deletions

View File

@@ -3,7 +3,7 @@
SettingsCache::SettingsCache()
{
settings = new QSettings;
settings = new QSettings(this);
lang = settings->value("personal/lang").toString();
@@ -15,9 +15,12 @@ SettingsCache::SettingsCache()
tableBgPath = settings->value("zonebg/table").toString();
playerBgPath = settings->value("zonebg/playerarea").toString();
picDownload = settings->value("personal/picturedownload", 0).toInt();
doubleClickToPlay = settings->value("interface/doubleclicktoplay", 1).toInt();
economicGrid = settings->value("table/economic", 0).toInt();
picDownload = settings->value("personal/picturedownload", false).toBool();
doubleClickToPlay = settings->value("interface/doubleclicktoplay", true).toBool();
economicGrid = settings->value("table/economic", false).toBool();
zoneViewSortByName = settings->value("zoneview/sortbyname", false).toBool();
zoneViewSortByType = settings->value("zoneview/sortbytype", false).toBool();
}
void SettingsCache::setLang(const QString &_lang)