Sort windows when saving sessions

This should help with flaky tests when the window order changes
This commit is contained in:
Florian Bruhin 2017-05-10 10:29:35 +02:00
parent 510b437916
commit 6ee382ef30

View File

@ -221,7 +221,7 @@ class SessionManager(QObject):
else:
winlist = objreg.window_registry
for win_id in winlist:
for win_id in sorted(winlist):
tabbed_browser = objreg.get('tabbed-browser', scope='window',
window=win_id)
main_window = objreg.get('main-window', scope='window',