Fix objreg._get_window_registry when non-mainwindow window is focused.

This commit is contained in:
Florian Bruhin 2014-10-05 22:41:44 +02:00
parent dfd3b3d9c4
commit d260b26105

View File

@ -122,7 +122,7 @@ def _get_window_registry(win_id):
if win_id == 'current':
app = get('app')
win = app.activeWindow()
if win is None:
if win is None or not hasattr(win, 'win_id'):
raise RegistryUnavailableError('window')
else:
win_id = win.win_id