mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-26 18:06:32 -05:00
Fix default name for new encounter groups not guaranteed unique
This commit is contained in:
@@ -281,7 +281,7 @@ void Editor::addNewWildMonGroup(QWidget *window) {
|
||||
}
|
||||
});
|
||||
// Give a default value to the label.
|
||||
lineEdit->setText(QString("g%1%2").arg(map->name()).arg(stack->count()));
|
||||
lineEdit->setText(this->project->toUniqueIdentifier("g" + map->name()));
|
||||
|
||||
// Fields [x] copy from existing
|
||||
QLabel *fieldsLabel = new QLabel("Fields:");
|
||||
|
||||
Reference in New Issue
Block a user