cleanup: remove setTabIcon() calls in MainTab

These were used to remove warning-icons to mark tabs with user
changes. However these icons haven't been set since commit
a86aca0378.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-02-27 20:59:36 +01:00 committed by Dirk Hohndel
parent f1e1a9634a
commit 3e9b661c22

View file

@ -532,8 +532,6 @@ void MainTab::acceptChanges()
EditMode lastMode = editMode; EditMode lastMode = editMode;
editMode = IGNORE_MODE; editMode = IGNORE_MODE;
tabBar()->setTabIcon(0, QIcon()); // Notes
tabBar()->setTabIcon(1, QIcon()); // Equipment
ui.dateEdit->setEnabled(true); ui.dateEdit->setEnabled(true);
hideMessage(); hideMessage();
@ -598,8 +596,6 @@ void MainTab::rejectChanges()
} }
ui.dateEdit->setEnabled(true); ui.dateEdit->setEnabled(true);
editMode = NONE; editMode = NONE;
tabBar()->setTabIcon(0, QIcon()); // Notes
tabBar()->setTabIcon(1, QIcon()); // Equipment
hideMessage(); hideMessage();
// no harm done to call cancelPlan even if we were not PLAN mode... // no harm done to call cancelPlan even if we were not PLAN mode...
DivePlannerPointsModel::instance()->cancelPlan(); DivePlannerPointsModel::instance()->cancelPlan();