mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Fix IPAL19670(Qt4 porting: Selection filters library - Unexpected error message).
This commit is contained in:
parent
4c544c9207
commit
fb78ee1007
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user