From 7acd32a5d7ab8755a70cbece28921b203677db3f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 23 Apr 2014 06:17:36 +0200 Subject: [PATCH] Display error when there's nothing to undo --- qutebrowser/widgets/tabbedbrowser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qutebrowser/widgets/tabbedbrowser.py b/qutebrowser/widgets/tabbedbrowser.py index b0354423d..ddd5460c4 100644 --- a/qutebrowser/widgets/tabbedbrowser.py +++ b/qutebrowser/widgets/tabbedbrowser.py @@ -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):