Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash in Gui::FileOptionsDialog while using Qt5.
  • Loading branch information
f3nix committed Dec 25, 2016
1 parent 239e824 commit bed8ff7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/FileDialog.cpp
Expand Up @@ -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
Expand Down

0 comments on commit bed8ff7

Please sign in to comment.