Salome HOME
Bug IPAL19464 - Qt4 porting. Orientation. Error on "Add to.." and "Copy from" in...
authorouv <ouv@opencascade.com>
Wed, 9 Apr 2008 09:33:37 +0000 (09:33 +0000)
committerouv <ouv@opencascade.com>
Wed, 9 Apr 2008 09:33:37 +0000 (09:33 +0000)
src/SMESHGUI/SMESHGUI_FilterLibraryDlg.cxx

index e3f08eac55a22b51ecdf3e4131f4007630fb9b25..38632b4744849c321a689aa203a793cc530c4175 100644 (file)
@@ -335,7 +335,9 @@ void SMESHGUI_FilterLibraryDlg::Init (const QList<int>& theTypes,
   myTable->Init(theTypes);
   myCurrFilterName = "";
   myCurrFilter = -1;
+  myListBox->blockSignals(true);
   myListBox->clear();
+  myListBox->blockSignals(false);
   myName->clear();
   myTable->Clear();
 
@@ -694,7 +696,9 @@ void SMESHGUI_FilterLibraryDlg::updateList()
   SMESH::string_array_var aNames = myLibrary->GetNames((SMESH::ElementType)myTable->GetType());
   for (int i = 0, n = aNames->length(); i < n; i++)
     aList.append(QString(aNames[ i ]));
+  myListBox->blockSignals(true);
   myListBox->clear();
+  myListBox->blockSignals(false);
   myListBox->addItems(aList);
   if (myListBox->count() == 0)
   {