From a6b57d0da0edc5b7960f700acb406a8271f3502e Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Thu, 26 Mar 2015 18:10:11 +0300 Subject: [PATCH] Set parent for QSettings --- settingswindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/settingswindow.cpp b/settingswindow.cpp index 2813ee6..e13d24b 100644 --- a/settingswindow.cpp +++ b/settingswindow.cpp @@ -12,6 +12,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) : //bool firstrun = !settings.value("core/firstrun").toBool(); //firstrun is inverted! + settings.setParent(this); ui->flowcontrolbox->setCurrentIndex(settings.value("core/flowcontrol", 0).toInt()); ui->senderbox->setValue(settings.value("core/senderinterval", 2).toInt()); ui->traybox->setChecked(settings.value("core/trayiconenabled", 1).toBool());