168 evt.setAccepted(True) |
168 evt.setAccepted(True) |
169 return True |
169 return True |
170 |
170 |
171 return super().event(evt) |
171 return super().event(evt) |
172 |
172 |
173 def tabRemoved(self, index): # noqa: U100 |
173 def tabRemoved(self, _index): |
174 """ |
174 """ |
175 Public slot to handle the removal of a tab. |
175 Public slot to handle the removal of a tab. |
176 |
176 |
177 @param index index of the removed tab |
177 @param _index index of the removed tab (unused) |
178 @type int |
178 @type int |
179 """ |
179 """ |
180 if Preferences.getWebBrowser("ShowPreview"): |
180 if Preferences.getWebBrowser("ShowPreview"): |
181 self.__hidePreview() |
181 self.__hidePreview() |