Diff of /branches/win32-mingw/src/gui/general/ResourceFinder.cpp [r12272] .. [r12273] Maximize Restore

  Switch to side-by-side view

--- a/branches/win32-mingw/src/gui/general/ResourceFinder.cpp
+++ b/branches/win32-mingw/src/gui/general/ResourceFinder.cpp
@@ -83,9 +83,9 @@
 {
     static const char *homepath = ".local/share";
     static const char *appname = "rosegarden";
-    char *home = getenv("HOME");
-
-    if (home) {
+    QString home = QDir::homePath();
+
+    if (home != "") {
         return QString("%1/%2/%3").arg(home).arg(homepath).arg(appname);
     } else {
         std::cerr << "ResourceFinder::getUserResourcePrefix: ERROR: No home directory available?" << std::endl;