244 self.__widgetActions[id(action)] = None |
244 self.__widgetActions[id(action)] = None |
245 toolBar.removeAction(action) |
245 toolBar.removeAction(action) |
246 if action.isSeparator(): |
246 if action.isSeparator(): |
247 del action |
247 del action |
248 else: |
248 else: |
249 self.__actionToToolBars[id(action)].remove(toolBar) # __IGNORE_WARNING__ |
249 self.__actionToToolBars[id(action)].remove(toolBar) |
250 |
250 |
251 # step 3: set the actions as requested |
251 # step 3: set the actions as requested |
252 newActionsWithSeparators = [] |
252 newActionsWithSeparators = [] |
253 for action in newActions: |
253 for action in newActions: |
254 newAction = None |
254 newAction = None |