diff --git a/src/Gui/FileDialog.cpp b/src/Gui/FileDialog.cpp index e3d13be87a..7b55ed658a 100644 --- a/src/Gui/FileDialog.cpp +++ b/src/Gui/FileDialog.cpp @@ -154,6 +154,7 @@ QString FileDialog::getSaveFileName (QWidget * parent, const QString & caption, QList urls; #if QT_VERSION >= 0x050000 + options |= QFileDialog::DontUseNativeDialog; urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)); @@ -245,6 +246,7 @@ QString FileDialog::getOpenFileName(QWidget * parent, const QString & caption, c QList urls; #if QT_VERSION >= 0x050000 + options |= QFileDialog::DontUseNativeDialog; urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)); @@ -315,6 +317,7 @@ QStringList FileDialog::getOpenFileNames (QWidget * parent, const QString & capt QList urls; #if QT_VERSION >= 0x050000 + options |= QFileDialog::DontUseNativeDialog; urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); urls << QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::HomeLocation));