1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(settings): set default values for some important settings

fix #4513
This commit is contained in:
sudden6 2017-07-16 13:06:59 +02:00
parent a9d2b03c7c
commit da4f6222d8
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -189,10 +189,9 @@ void Settings::loadGlobal()
s.beginGroup("Advanced");
{
// TODO: Default values in this block should be changed @ v1.8
makeToxPortable = s.value("makeToxPortable", makeToxPortable).toBool();
enableIPv6 = s.value("enableIPv6", enableIPv6).toBool();
forceTCP = s.value("forceTCP", forceTCP).toBool();
makeToxPortable = s.value("makeToxPortable", false).toBool();
enableIPv6 = s.value("enableIPv6", true).toBool();
forceTCP = s.value("forceTCP", false).toBool();
}
s.endGroup();
@ -206,13 +205,12 @@ void Settings::loadGlobal()
s.beginGroup("GUI");
{
// TODO: Default values in this block should be changed @ v1.8
showWindow = s.value("showWindow", showWindow).toBool();
showInFront = s.value("showInFront", showInFront).toBool();
groupAlwaysNotify = s.value("groupAlwaysNotify", groupAlwaysNotify).toBool();
groupchatPosition = s.value("groupchatPosition", groupchatPosition).toBool();
separateWindow = s.value("separateWindow", separateWindow).toBool();
dontGroupWindows = s.value("dontGroupWindows", dontGroupWindows).toBool();
showWindow = s.value("showWindow", true).toBool();
showInFront = s.value("showInFront", true).toBool();
groupAlwaysNotify = s.value("groupAlwaysNotify", true).toBool();
groupchatPosition = s.value("groupchatPosition", true).toBool();
separateWindow = s.value("separateWindow", false).toBool();
dontGroupWindows = s.value("dontGroupWindows", false).toBool();
const QString DEFAULT_SMILEYS = ":/smileys/emojione/emoticons.xml";
smileyPack = s.value("smileyPack", DEFAULT_SMILEYS).toString();