Set parent for QSettings

This commit is contained in:
NeoTheFox 2015-03-26 18:10:11 +03:00
parent 74ec8c9806
commit a6b57d0da0

View File

@ -12,6 +12,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) :
//bool firstrun = !settings.value("core/firstrun").toBool(); //firstrun is inverted! //bool firstrun = !settings.value("core/firstrun").toBool(); //firstrun is inverted!
settings.setParent(this);
ui->flowcontrolbox->setCurrentIndex(settings.value("core/flowcontrol", 0).toInt()); ui->flowcontrolbox->setCurrentIndex(settings.value("core/flowcontrol", 0).toInt());
ui->senderbox->setValue(settings.value("core/senderinterval", 2).toInt()); ui->senderbox->setValue(settings.value("core/senderinterval", 2).toInt());
ui->traybox->setChecked(settings.value("core/trayiconenabled", 1).toBool()); ui->traybox->setChecked(settings.value("core/trayiconenabled", 1).toBool());