Index: /trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp	(revision 46836)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp	(revision 46837)
@@ -3541,20 +3541,13 @@
 QString VBoxGlobal::documentsPath()
 {
-    QString path;
-#if QT_VERSION < 0x040400
-    path = QDir::homePath();
-#else
-    path = QDesktopServices::storageLocation (QDesktopServices::DocumentsLocation);
-#endif
-
-    /* Make sure the path exists */
-    QDir dir (path);
+    QString path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
+    QDir dir(path);
     if (dir.exists())
-        return QDir::cleanPath (dir.canonicalPath());
+        return QDir::cleanPath(dir.canonicalPath());
     else
     {
-        dir.setPath (QDir::homePath() + "/Documents");
+        dir.setPath(QDir::homePath() + "/Documents");
         if (dir.exists())
-            return QDir::cleanPath (dir.canonicalPath());
+            return QDir::cleanPath(dir.canonicalPath());
         else
             return QDir::homePath();
