Fix new name regexes, some assumptions about MAPSEC_NONE, memory leak

This commit is contained in:
GriffinR
2024-10-17 14:01:27 -04:00
parent 728355d202
commit 10aa6f6c3f
5 changed files with 73 additions and 49 deletions

View File

@@ -154,9 +154,6 @@ void ScriptUtility::setMainTab(int index) {
// Can't select tab if it's disabled
if (!window->ui->mainTabBar->isTabEnabled(index))
return;
// don't change tab when not editing a map
if (!window->editor || !window->editor->map)
return;
window->on_mainTabBar_tabBarClicked(index);
}