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

QFileDialog::getOpenFileUrl and related functions do not return empty URLs on cancel.

XMLWordPrintable

    • d915432c23177a5d7f9ffd0d6899aab13ddc4c2b (stable,7.5.2014, 5.3.1)

      In `QFileDialog::getOpenFileUrl`, `QFileDialog::getOpenFileUrls`, `QFileDialog::getSaveFileUrl`, and `QFileDialog::getExistingDirectoryUrl`, a local file path from the related local file equivalents are passed directly to QUrl::fromLocalPath. Unfortunately, this won't work, because an empty string will convert to `file:///`.

      (I'm not sure to put for component here, so I picked one of the GUI components largely arbitrarily.)

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

            kleint Friedemann Kleint
            jchadwick John Chadwick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes