Fix objreg._get_window_registry when non-mainwindow window is focused.
This commit is contained in:
parent
dfd3b3d9c4
commit
d260b26105
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user