From bed8ff747d94ec9d15e41bcfe95f947d83172063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Skowro=C5=84ski?= Date: Sun, 25 Dec 2016 02:21:31 +0100 Subject: [PATCH] Fix crash in Gui::FileOptionsDialog while using Qt5. --- src/Gui/FileDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/FileDialog.cpp b/src/Gui/FileDialog.cpp index 023d6539c..c0f134747 100644 --- a/src/Gui/FileDialog.cpp +++ b/src/Gui/FileDialog.cpp @@ -432,6 +432,10 @@ FileOptionsDialog::FileOptionsDialog( QWidget* parent, Qt::WindowFlags fl ) extensionButton = new QPushButton( this ); extensionButton->setText( tr( "Extended" ) ); +#if QT_VERSION >= 0x050000 + setOption(QFileDialog::DontUseNativeDialog); +#endif + //search for the grid layout and add the new button QGridLayout* grid = this->findChild(); #if QT_VERSION >= 0x040500