src/config.cc

changeset 613
2d01590da286
parent 611
6679e47b019f
child 622
622c49e60348
--- a/src/config.cc	Fri Jan 10 03:36:21 2014 +0200
+++ b/src/config.cc	Fri Jan 10 11:09:38 2014 +0200
@@ -48,12 +48,7 @@
 // -----------------------------------------------------------------------------
 static QSettings* getSettingsObject()
 {
-	QString path = getApplicationDirectory() + DIRSLASH UNIXNAME EXTENSION;
-
-#if DIRSLASH_CHAR != '/'
-	path.replace (DIRSLASH, "/");
-#endif
-
+	QString path = qApp->applicationDirPath() + "/" UNIXNAME EXTENSION;
 	return new QSettings (path, QSettings::IniFormat);
 }
 

mercurial