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>
This commit is contained in:
parent
f1e1a9634a
commit
3e9b661c22
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user