Add cmdutils.check_overflow in _set_current_index
This commit is contained in:
parent
641a2d9b42
commit
77dd2a105f
@ -86,6 +86,7 @@ class CommandDispatcher:
|
||||
|
||||
def _set_current_index(self, idx):
|
||||
"""Convenience method to set the current widget index."""
|
||||
cmdutils.check_overflow(idx, 'int')
|
||||
return self._tabbed_browser.setCurrentIndex(idx)
|
||||
|
||||
def _current_index(self):
|
||||
|
Loading…
Reference in New Issue
Block a user