-
- # Test if case exists
- case_key = (salomeStudyId, salomeStudyItem.GetID())
- if __cases__.has_key(case_key):
- __cases__.pop(case_key)
- adaoStudyEditor.removeItem(salomeStudyId, salomeStudyItem)
- adaoGuiHelper.refreshObjectBrowser()
-
- # Remove Callback in adaoEficasWrapper
- self.__dlgEficasWrapper.removeCallbackId(callbackId)
+ else:
+ # Test if case exists
+ case_key = (salomeStudyId, salomeStudyItem.GetID())
+ if __cases__.has_key(case_key):
+ __cases__.pop(case_key)
+ adaoStudyEditor.removeItem(salomeStudyId, salomeStudyItem)
+ adaoGuiHelper.refreshObjectBrowser()