Changeset 46837 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 27, 2013 12:27:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r46797 r46837 3541 3541 QString VBoxGlobal::documentsPath() 3542 3542 { 3543 QString path; 3544 #if QT_VERSION < 0x040400 3545 path = QDir::homePath(); 3546 #else 3547 path = QDesktopServices::storageLocation (QDesktopServices::DocumentsLocation); 3548 #endif 3549 3550 /* Make sure the path exists */ 3551 QDir dir (path); 3543 QString path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); 3544 QDir dir(path); 3552 3545 if (dir.exists()) 3553 return QDir::cleanPath 3546 return QDir::cleanPath(dir.canonicalPath()); 3554 3547 else 3555 3548 { 3556 dir.setPath 3549 dir.setPath(QDir::homePath() + "/Documents"); 3557 3550 if (dir.exists()) 3558 return QDir::cleanPath 3551 return QDir::cleanPath(dir.canonicalPath()); 3559 3552 else 3560 3553 return QDir::homePath();
Note:
See TracChangeset
for help on using the changeset viewer.