Display error when there's nothing to undo

This commit is contained in:
Florian Bruhin 2014-04-23 06:17:36 +02:00
parent 61802725a6
commit 7acd32a5d7

View File

@ -268,6 +268,8 @@ class TabbedBrowser(TabWidget):
"""
if self._url_stack:
self.tabopen(self._url_stack.pop())
else:
message.error("Nothing to undo!")
@cmdutils.register(instance='mainwindow.tabs', name='tabprev')
def switch_prev(self, count=1):