Merge pull request #395 from f3nix/qt5-fixes-1

Fix crash in Gui::FileOptionsDialog while using Qt5.
This commit is contained in:
wwmayer
2016-12-25 10:49:40 +01:00
committed by GitHub

View File

@@ -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<QGridLayout*>();
#if QT_VERSION >= 0x040500