Commit 4c856458 authored by Committed by Jean-Baptiste Kempf
Use QT file browser functions which return URLs when possible.
The getOpenFileNames() and getSaveFileName() methods of QFileDialog only work on local paths and return a blank string if the dialog is used to select a remote file (e.g., on a Samba share). As of Qt 5.2 the QFileDialog class provides the methods getOpenFileUrls() and getSaveFileUrl() that return QUrl objects which can contain URLs to remote paths. Use these methods when an appropriate version of the Qt libraries are available so that the paths to remote files are returned correctly when selected via the various file selection dialogs. Signed-off-by: Frank Praznik <firstname.lastname@example.org> Signed-off-by: Jean-Baptiste Kempf <email@example.com>
Showing with 59 additions and 8 deletions