-
Bug
-
Resolution: Done
-
P2: Important
-
4.4.3
-
None
-
722d351de79713527
On Vista, QDesktopServices::storageLocation() might not work correctly.
For the following two cases:
1. There are no records in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
2. There are records in that section of the registry.
Please notice the comment in both files:
"!Do not use this registry key"="Use the SHGetFolderPath or SHGetKnownFolderPath function instead"
QDesktopServices::storageLocation(QDesktopServices::DataLocation) returns "" in case (1), which is a problem, and works correctly in case (2).
QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation) returns the executable's directory in case (1), which is a problem, and works correctly in case (2).