mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 10:50:34 +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;
|
aResult = true;
|
||||||
} else if (myMode == EDIT || myMode == ADD_TO) {
|
} else if (myMode == EDIT || myMode == ADD_TO) {
|
||||||
SMESH::Filter_var aFilter = createFilter();
|
SMESH::Filter_var aFilter = createFilter();
|
||||||
if (!myLibrary->Replace(myCurrFilterName.toLatin1().constData(),
|
if (!myListBox->selectedItems().empty() &&
|
||||||
|
!myLibrary->Replace(myCurrFilterName.toLatin1().constData(),
|
||||||
myName->text().toLatin1().constData(),
|
myName->text().toLatin1().constData(),
|
||||||
aFilter.in())) {
|
aFilter.in())) {
|
||||||
SUIT_MessageBox::information(SMESHGUI::desktop(), tr("SMESH_ERROR"),
|
SUIT_MessageBox::information(SMESHGUI::desktop(), tr("SMESH_ERROR"),
|
||||||
|
Loading…
Reference in New Issue
Block a user