Fix crash in Gui::FileOptionsDialog while using Qt5.

This commit is contained in:
Mateusz Skowroński 2016-12-25 02:21:31 +01:00
parent 239e824334
commit bed8ff747d

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