Set parent for QSettings
This commit is contained in:
parent
a6b57d0da0
commit
136c2f1077
@ -16,7 +16,7 @@ Sender::Sender(QObject *parent) : QObject(parent)
|
||||
sendTimer = new QTimer(this);
|
||||
|
||||
//Fetch settings
|
||||
QSettings settings;
|
||||
QSettings settings(this);
|
||||
sendTimer->setInterval(settings.value("core/senderinterval", 2).toInt());
|
||||
sendingChecksum = settings.value("core/checksums", 0).toBool();
|
||||
dtr = settings.value("core/dtr", 1).toBool();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user