summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/main.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-09 18:40:32 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-09 18:40:32 +0000
commitedf54496ad7a9a5730d99f0d6ce9edc8347e1763 (patch)
tree3cd9d7738acc5f39517eb832f28b7ad8af132bd2 /rbutil/rbutilqt/main.cpp
parent36b150e5dc62a4c46aa8fd34a1c9ce828ae2bd28 (diff)
downloadrockbox-edf54496ad7a9a5730d99f0d6ce9edc8347e1763.tar.gz
rockbox-edf54496ad7a9a5730d99f0d6ce9edc8347e1763.tar.bz2
rockbox-edf54496ad7a9a5730d99f0d6ce9edc8347e1763.zip
small simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14260 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
-rw-r--r--rbutil/rbutilqt/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index 39dd3d0735..d9c1b32e2e 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -25,12 +25,12 @@
int main( int argc, char ** argv ) {
QApplication app( argc, argv );
- QString absolutePath = QFileInfo(qApp->arguments().at(0)).absolutePath() + "/";
+ QString absolutePath = qApp->applicationDirPath();
// portable installation:
// check for a configuration file in the program folder.
QSettings *user;
- if(QFileInfo(absolutePath + "RockboxUtility.ini").isFile())
- user = new QSettings(absolutePath + "RockboxUtility.ini", QSettings::IniFormat, 0);
+ if(QFileInfo(absolutePath + "/RockboxUtility.ini").isFile())
+ user = new QSettings(absolutePath + "/RockboxUtility.ini", QSettings::IniFormat, 0);
else user = new QSettings(QSettings::IniFormat, QSettings::UserScope, "rockbox.org", "RockboxUtility");
QTranslator translator;