From 3bf4aaf9645d776aa844c8a6049bb52e37c26887 Mon Sep 17 00:00:00 2001 From: garak Date: Sat, 16 Jan 2021 11:12:38 -0500 Subject: [PATCH] fix palette editor crash --- src/ui/tileseteditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/tileseteditor.cpp b/src/ui/tileseteditor.cpp index a63b6680..755e941d 100644 --- a/src/ui/tileseteditor.cpp +++ b/src/ui/tileseteditor.cpp @@ -83,6 +83,7 @@ void TilesetEditor::setTilesets(QString primaryTilesetLabel, QString secondaryTi if (this->secondaryTileset) delete this->secondaryTileset; this->primaryTileset = primaryTileset->copy(); this->secondaryTileset = secondaryTileset->copy(); + if (paletteEditor) paletteEditor->setTilesets(this->primaryTileset, this->secondaryTileset); } void TilesetEditor::initUi() {