From c4fc5c0c43dca026accebcb8a8203fa7404283af Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sun, 7 Jun 2015 19:51:46 -0400 Subject: [PATCH] Fixed to use the title "(null)" when the page does not have any title. --- qutebrowser/browser/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index c0f19c0b2..fb539ab10 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -103,7 +103,8 @@ class CommandDispatcher: def _current_title(self): """Convenience method to get the current title.""" - return self._tabbed_browser.page_title(self._current_index()) + title = self._current_widget().title() + return title if title else "(null)" def _current_widget(self): """Get the currently active widget from a command."""