QPlatformFileDialog's initiallySelectedFiles option hold a list of files that is set before the file dialog pops up. This is needed for example in OSX, because the filename cannot be changed after the dialog is created.
In void QGtk2FileDialogHelper::applyOptions() QStrings are copied to QUrls because QGtk2FileDialogHelper::selectFile expects the parameter to be QUrl again (since 5.2).
Thus QString is copied into a QUrl in the wrong way. See https://gist.github.com/webmaster128/8256606 where END STATE 1 is what you want and END STATE 2 is what is done.
|For Gerrit Dashboard: QTBUG-35947|
|74762,1||GTK FileDialog: don't convert QUrl to QString prematurely||stable||qt/qtbase||Status: MERGED||+2||0|