834 Public method to handle the toggle of a window. |
834 Public method to handle the toggle of a window. |
835 |
835 |
836 @param act reference to the action that triggered (QAction) |
836 @param act reference to the action that triggered (QAction) |
837 """ |
837 """ |
838 idx = act.data() |
838 idx = act.data() |
839 self.__toggleWidget(self.widgets[idx]) |
839 if idx is not None: |
|
840 self.__toggleWidget(self.widgets[idx]) |
840 |
841 |
841 def __toggleWidget(self, w): |
842 def __toggleWidget(self, w): |
842 """ |
843 """ |
843 Private method to toggle a workspace window. |
844 Private method to toggle a workspace window. |
844 |
845 |