VirtualBox

Ignore:
Timestamp:
Mar 12, 2009 9:32:18 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44238
Message:

FE/Qt4: make sure the path exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r17714 r17724  
    3636#include <QProcess>
    3737#include <QHash>
    38 #include <QDesktopServices>
    39 #include <QDir>
    4038
    4139class QAction;
     
    733731    }
    734732
    735     static inline QString documentsPath()
    736     {
    737         QString path;
    738 #if QT_VERSION < 0x040400
    739         path = QDir::homePath();
    740 #else
    741         path = QDesktopServices::storageLocation (QDesktopServices::DocumentsLocation);
    742 #endif
    743         return QDir::cleanPath (path);
    744     }
     733    static QString documentsPath();
    745734
    746735signals:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette