Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15158

QDesktopServices::storageLocation when default storage on is a network drive ( Windows )

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.0
    • 4.6.3, 4.7.0, 4.7.1
    • Core: Other
    • None
    • Windows 7

    Description

      Add a new folder on a network drive to your Documents library in Windows:

      Libraries->Documents->right click -> Properties -> Include a folder -> select a folder on a network drive -> accept -> make it default.

      In this scenario, a call to QDesktopServices::storageLocation(QDesktopServices::DataLocation) returns the incorrect path.

      This seems to be because inside QDesktopServices::storageLocation, on line 197, you're making this call:

      SHGetSpecialFolderPath(0, path, CSIDL_LOCAL_APPDATA, FALSE)

      this could possibly be

      SHGetSpecialFolderPath(0, path, CSIDL_APPDATA, FALSE).

      The MS document (http://msdn.microsoft.com/en-us/library/bb762494%28v=VS.85%29.aspx) says that CSIDL_LOCAL_APPDATA is for local (non-roaming) applications. So it's no surprise the call fails when it sees a network user directory.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              xcm Martin Petersson (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes