summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-27 20:59:36 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-28 08:16:41 -0800
commit3e9b661c2207f252ffac07f587c4efe5a0c42e67 (patch)
tree9df7664c224fe982a73736e8524411c65da5e867 /desktop-widgets/tab-widgets/maintab.cpp
parentf1e1a9634a842f2d218b4aecee1cf18880baf2b8 (diff)
downloadsubsurface-3e9b661c2207f252ffac07f587c4efe5a0c42e67.tar.gz
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 a86aca037843167b26726926dbf2aebe0513afba. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index cfb442500..b17b80633 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -532,8 +532,6 @@ void MainTab::acceptChanges()
EditMode lastMode = editMode;
editMode = IGNORE_MODE;
- tabBar()->setTabIcon(0, QIcon()); // Notes
- tabBar()->setTabIcon(1, QIcon()); // Equipment
ui.dateEdit->setEnabled(true);
hideMessage();
@@ -598,8 +596,6 @@ void MainTab::rejectChanges()
}
ui.dateEdit->setEnabled(true);
editMode = NONE;
- tabBar()->setTabIcon(0, QIcon()); // Notes
- tabBar()->setTabIcon(1, QIcon()); // Equipment
hideMessage();
// no harm done to call cancelPlan even if we were not PLAN mode...
DivePlannerPointsModel::instance()->cancelPlan();