From 05beed21cada72ff095ce31b9c453fe614ce75a6 Mon Sep 17 00:00:00 2001 From: garak Date: Sun, 18 Feb 2024 19:56:52 -0500 Subject: [PATCH] disable deletion of map sections and layouts --- src/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b96003a9..d6e8ece2 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1511,8 +1511,7 @@ void MainWindow::mapListRemoveArea() { } void MainWindow::mapListRemoveLayout() { - // TODO: consider this - // do nothing, for now at least + // TODO: consider this in the future } void MainWindow::mapListRemoveItem() { @@ -1523,10 +1522,12 @@ void MainWindow::mapListRemoveItem() { this->mapListRemoveGroup(); break; case 1: - this->mapListRemoveArea(); + // Disabled + // this->mapListRemoveArea(); break; case 2: - this->mapListRemoveLayout(); + // Disabled + // this->mapListRemoveLayout(); break; } } @@ -1758,7 +1759,6 @@ void MainWindow::currentMetatilesSelectionChanged() // !TODO void MainWindow::on_mapListContainer_currentChanged(int index) { - // switch (index) { case MapListTab::Groups: this->mapSortOrder = MapSortOrder::SortByGroup;