From: akl Date: Fri, 6 Jun 2008 11:19:10 +0000 (+0000) Subject: Fix IPAL19670(Qt4 porting: Selection filters library - Unexpected error message). X-Git-Tag: V5_1_0a1~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb78ee1007d3da499d3e6739e40e883c1109011e;p=modules%2Fsmesh.git Fix IPAL19670(Qt4 porting: Selection filters library - Unexpected error message). --- diff --git a/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx index 074f2d3e3..ce055c5b5 100644 --- a/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx @@ -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"),