Fix showing errors in the current window

This commit is contained in:
Florian Bruhin 2016-09-14 15:18:12 +02:00
parent 0c278bc31d
commit 886103c887

View File

@ -84,7 +84,7 @@ def _wrapper(win_id, method_name, text, *args, **kwargs):
win = QApplication.instance().activeWindow() win = QApplication.instance().activeWindow()
window_focused = (win is not None and window_focused = (win is not None and
win in objreg.window_registry.values() and win in objreg.window_registry.values() and
win.win_id == win_id) (win.win_id == win_id) or win_id == 'current')
if (config.get('ui', 'message-unfocused') or if (config.get('ui', 'message-unfocused') or
method_name not in ['error', 'warning', 'info'] or method_name not in ['error', 'warning', 'info'] or
window_focused): window_focused):