mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
Fix regression for appending new tilesets, add missing tooltip
This commit is contained in:
parent
67e2844821
commit
1f9a836da9
|
|
@ -91,7 +91,11 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QCheckBox" name="checkBox_CheckerboardFill"/>
|
||||
<widget class="QCheckBox" name="checkBox_CheckerboardFill">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>If enabled, the metatiles in the new tileset will be filled alternately with tile 1 or tile 2. If not enabled, all the metatiles will be filled with tile 0.</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="2">
|
||||
<spacer name="verticalSpacer">
|
||||
|
|
|
|||
|
|
@ -1464,12 +1464,13 @@ Tileset *Project::createNewTileset(QString name, bool secondary, bool checkerboa
|
|||
|
||||
// Update tileset label arrays
|
||||
QStringList *labelList = tileset->is_secondary ? &this->secondaryTilesetLabels : &this->primaryTilesetLabels;
|
||||
for (int i = 0; i < labelList->length(); i++) {
|
||||
int i = 0;
|
||||
for (; i < labelList->length(); i++) {
|
||||
if (labelList->at(i) > tileset->name) {
|
||||
labelList->insert(i, tileset->name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
labelList->insert(i, tileset->name);
|
||||
this->tilesetLabelsOrdered.append(tileset->name);
|
||||
|
||||
// TODO: Ideally we wouldn't save new Tilesets immediately
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user