]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix IPAL19670(Qt4 porting: Selection filters library - Unexpected error message).
authorakl <akl@opencascade.com>
Fri, 6 Jun 2008 11:19:10 +0000 (11:19 +0000)
committerakl <akl@opencascade.com>
Fri, 6 Jun 2008 11:19:10 +0000 (11:19 +0000)
src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx

index 074f2d3e351034adf06895a9dbe733e26bf2bf77..ce055c5b547306429d05164086035628ba79c748 100644 (file)
@@ -436,7 +436,8 @@ bool SMESHGUI_FilterLibraryDlg::onApply()
     aResult = true;
   } else if (myMode == EDIT || myMode == ADD_TO) {
     SMESH::Filter_var aFilter = createFilter();
-    if (!myLibrary->Replace(myCurrFilterName.toLatin1().constData(),
+    if (!myListBox->selectedItems().empty() && 
+       !myLibrary->Replace(myCurrFilterName.toLatin1().constData(),
                            myName->text().toLatin1().constData(),
                            aFilter.in())) {
       SUIT_MessageBox::information(SMESHGUI::desktop(), tr("SMESH_ERROR"),