summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/rbsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/rbsettings.cpp')
-rw-r--r--rbutil/rbutilqt/rbsettings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp
index 51f7057cc2..6e3e63110e 100644
--- a/rbutil/rbutilqt/rbsettings.cpp
+++ b/rbutil/rbutilqt/rbsettings.cpp
@@ -28,10 +28,10 @@ void RbSettings::open()
// portable installation:
// check for a configuration file in the program folder.
QFileInfo config;
- config.setFile(qApp->applicationDirPath() + "/RockboxUtility.ini");
+ config.setFile(QCoreApplication::instance()->applicationDirPath() + "/RockboxUtility.ini");
if(config.isFile())
{
- userSettings = new QSettings(qApp->applicationDirPath() + "/RockboxUtility.ini",
+ userSettings = new QSettings(QCoreApplication::instance()->applicationDirPath() + "/RockboxUtility.ini",
QSettings::IniFormat, this);
qDebug() << "config: portable";
}