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

QFileDialog - When DontResolveSymLinks is set, clicking a link to a folder will open the folder - Is it expected?

    XMLWordPrintable

Details

    Description

      The correct folder that matches the link will be open but the path will include the .lnk (which is incorrect).

      When DontResolveSymLinks is set, shouldn't we return the link itself wheter it points to a file or a folder?

      Included a test case to test with for example the following folder:
      tmp/
      ├─originals/
      │ │ original_text.txt
      │ │
      │ └─original_folder/

      └─shortcuts/

      • original_folder - shortcut.lnk
      • original_text.txt - shortcut.lnk

      Includes a patch suggestion (may not cover all cases but can give a clue)

      Attachments

        1. main.cpp
          3 kB
        2. mysuggestion.png
          mysuggestion.png
          22 kB
        3. patch_4.6.1_filelink.txt
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes