Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-754

Directory tree (file browser) not sorted for non-system drives under Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.4
    • 1.3.2
    • User Interface
    • None
    • Encountered on Windows 7 using Picard 1.3.2 (PyQT 4.10.3)

      The directory tree in the file browser pane is not sorted for drives other than the system root C: under Windows. For example, a directory containing folders named A-Z is sorted correctly when it is located on the C: drive. A copy of the same directory is displayed in seemingly random order when located on a network mapped drive Z:. See attached images.

      The problem can be traced to this line: http://github.com/musicbrainz/picard/blob/release-1.3.2/picard/ui/filebrowser.py#L58

      The behaviour of QtGui.QFileSystemModel is such that it only sorts directories under the path set by .setRootPath(). By using QtCore.QDir.rootPath() this defaults to the system root "C:\". This source http://bugreports.qt.io/browse/QTBUG-12934 suggests using "" instead.

            zas Zas
            jeroonk Jeroen Kromwijk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                1.4