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

Nonnative FileDialog doesn't restore sidebar URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.1
    • None
    • Windows 7 x64

      QFileDialog saves its state via QSettings, including the folders in the sidebar. Unfortunately it no longer restores the sidebar folders. This used to work in 5.1.

      QFileDialogPrivate::init() reads the settings and restores state via QFileDialog::restoreState(). restoreState() restores the selected folder but does not restore the sidebar if the dialog is in native mode. However, at the point when init() is called (from the constructors) the dialog will always be in native mode.

      Possible fix: restoreState() could store the sidebar URLs in QFileDialogOptions and createWidgets() could restore them when the nonnative dialog is activated.

        1. qtbug38673.zip
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            peppe Giuseppe D'Angelo
            s.walton Simon Walton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes