Fix crash when there are no predefined windows
Traceback (most recent call last): File "/usr/bin/terminator", line 126, in <module> TERMINATOR.layout_done() File "/usr/share/terminator/terminatorlib/terminator.py", line 395, in layout_done if window not in self.prelayout_windows: TypeError: argument of type 'NoneType' is not iterable fixes: https://bugs.launchpad.net/terminator/+bug/1702369
This commit is contained in:
parent
5a389a4448
commit
6342a89297
@ -391,10 +391,11 @@ class Terminator(Borg):
|
||||
|
||||
# Build list of new windows using prelayout list
|
||||
new_win_list = []
|
||||
for window in self.windows:
|
||||
if window not in self.prelayout_windows:
|
||||
new_win_list.append(window)
|
||||
|
||||
if self.prelayout_windows:
|
||||
for window in self.windows:
|
||||
if window not in self.prelayout_windows:
|
||||
new_win_list.append(window)
|
||||
|
||||
# Make sure all new windows get bumped to the top
|
||||
for window in new_win_list:
|
||||
window.show()
|
||||
|
Loading…
Reference in New Issue
Block a user