From: nds Date: Tue, 7 Nov 2017 12:13:39 +0000 (+0300) Subject: Key_Escape processing in File selector widget. Otherwise, crash happens if file dialo... X-Git-Tag: V_2.10.0RC~171 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd8c3462c2a97a58228917a4dca039060a954330;p=modules%2Fshaper.git Key_Escape processing in File selector widget. Otherwise, crash happens if file dialog is opened. --- diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp index ae84af37e..ca7ee5de1 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp @@ -144,7 +144,8 @@ void ModuleBase_WidgetFileSelector::onPathSelectionBtn() myFileDialog = new QFileDialog(this, myTitle, aDefaultPath, aFilter); myFileDialog->setNameFilter(aFilter); myFileDialog->setOptions(QFileDialog::DontUseNativeDialog); - myFileDialog->setAcceptMode(myType == WFS_SAVE ? QFileDialog::AcceptSave : QFileDialog::AcceptOpen); + myFileDialog->setAcceptMode(myType == WFS_SAVE ? QFileDialog::AcceptSave + : QFileDialog::AcceptOpen); if (myFileDialog->exec() == QDialog::Accepted) { mySelectedFilter = myFileDialog->selectedNameFilter();