--- src/main.cpp.orig 2010-06-11 18:42:26.000000000 +0200 +++ src/main.cpp 2010-06-11 18:54:19.000000000 +0200 @@ -170,5 +170,5 @@ int main(int argc, char *argv[]){ QString locale; - QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); + #ifndef DISABLE_GUI bool no_splash = false; @@ -219,4 +219,17 @@ #endif + /** + * @bug 592372 + * @short Invalid QSettings Initialisation! + * @author Juergen Heinemann (Undefined) http://www.hjcms.de + * It is not a good Idea to Initial QSettings before Q*Application was set. + * Why? QSettings read Application Environments and set missed Data to Settings. + */ + app.setApplicationName ( "qBittorrent" ); + QSettings settings ( + QString::fromUtf8("qBittorrent"), + QString::fromUtf8("qBittorrent") + ); + // Load translation locale = settings.value(QString::fromUtf8("Preferences/General/Locale"), QString()).toString();