From 3e9b661c2207f252ffac07f587c4efe5a0c42e67 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 27 Feb 2020 20:59:36 +0100 Subject: 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 --- desktop-widgets/tab-widgets/maintab.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'desktop-widgets/tab-widgets/maintab.cpp') 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(); -- cgit v1.2.3-70-g09d2