Skip to content

Commit

Permalink
don't reload level header editor if level is worldmap
Browse files Browse the repository at this point in the history
  • Loading branch information
mchlnix committed May 26, 2019
1 parent 31e7b91 commit 0330a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def update_level(self, world, level, object_set=None):
self.level_view.load_level(world=world, level=level, object_set=object_set)
self.Fit()

if self.header_editor is not None:
if self.header_editor is not None and isinstance(level, Level):
self.header_editor.reload_level()

self.object_list.fill()
Expand Down

0 comments on commit 0330a9a

Please sign in to comment.