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

File name in save dialog defaults to directory name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.1.0 Beta 1
    • None
    • Mac OS X 10.6.8
    • macOS

    Description

      If QFileDialog::getSaveFileName() is passed an empty string for the directory path, the default file name in the "Save As" field is the name of the directory.

      The default file name should be empty. This was the behavior in Qt 4.8.1.

      It's easy to see the regression if you compare examples/dialogs/standarddialogs. In both versions, the "QFileDialog::getSaveFileName()" button pops up a save dialog that is (for me) initially in a directory called "MacOS". In Qt 4.8.1, the "Save As" field is empty. In Qt 5.1.0-beta1, the "Save As" field says "MacOS".

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jlstrecker Jaymie Strecker
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes