]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Key_Escape processing in File selector widget. Otherwise, crash happens if file dialo...
authornds <nds@opencascade.com>
Tue, 7 Nov 2017 12:13:39 +0000 (15:13 +0300)
committernds <nds@opencascade.com>
Tue, 7 Nov 2017 12:13:39 +0000 (15:13 +0300)
src/ModuleBase/ModuleBase_WidgetFileSelector.cpp

index ae84af37e4f03a1397e91afc4252abe7541f3dbe..ca7ee5de1a7f29e16f59b81e3aa547fa9183d16e 100644 (file)
@@ -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();