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

Nonnative FileDialog doesn't restore sidebar URLs

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes