diff --git a/application/src/settings.cpp b/application/src/settings.cpp index 3c00ac0..8650ca6 100644 --- a/application/src/settings.cpp +++ b/application/src/settings.cpp @@ -19,8 +19,10 @@ Settings::Settings(QObject *parent) : QObject(parent) { - mySettings = new QSettings("harbour-batterybuddy", "harbour-batterybuddy"); - qDebug() << "Using" << mySettings->fileName(); + // Use the same file location as GUI for data exchange + if(!mySettings) { + mySettings = new QSettings("harbour-batterybuddy", "harbour-batterybuddy"); + } // Read in the values loadInteger(sLowAlert, &lowAlert, 5, 99);