fix palette editor crash

This commit is contained in:
garak 2021-01-16 11:12:38 -05:00 committed by huderlem
parent a924938b9b
commit 3bf4aaf964

View file

@ -83,6 +83,7 @@ void TilesetEditor::setTilesets(QString primaryTilesetLabel, QString secondaryTi
if (this->secondaryTileset) delete this->secondaryTileset; if (this->secondaryTileset) delete this->secondaryTileset;
this->primaryTileset = primaryTileset->copy(); this->primaryTileset = primaryTileset->copy();
this->secondaryTileset = secondaryTileset->copy(); this->secondaryTileset = secondaryTileset->copy();
if (paletteEditor) paletteEditor->setTilesets(this->primaryTileset, this->secondaryTileset);
} }
void TilesetEditor::initUi() { void TilesetEditor::initUi() {