From d8cd599096a85bb870c9c4ed9a6650ef7ffba675 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 6 Oct 2014 07:41:26 +0200 Subject: [PATCH] Fix wrong 'is' check. --- qutebrowser/utils/objreg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/objreg.py b/qutebrowser/utils/objreg.py index d55b19342..e0dcfa129 100644 --- a/qutebrowser/utils/objreg.py +++ b/qutebrowser/utils/objreg.py @@ -131,7 +131,7 @@ def _get_window_registry(window): """Get the registry of a window.""" if window is None: raise TypeError("window is None with scope window!") - if window is 'current': + if window == 'current': app = get('app') win = app.activeWindow() if win is None or not hasattr(win, 'win_id'):