mirror of
https://github.com/huderlem/porymap.git
synced 2026-11-10 19:08:22 -06:00
Fix new name regexes, some assumptions about MAPSEC_NONE, memory leak
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user