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,6 +391,7 @@ class Terminator(Borg):
|
|||
|
||||
# Build list of new windows using prelayout list
|
||||
new_win_list = []
|
||||
if self.prelayout_windows:
|
||||
for window in self.windows:
|
||||
if window not in self.prelayout_windows:
|
||||
new_win_list.append(window)
|
||||
|
|
Loading…
Reference in New Issue