diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-26 22:58:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-27 14:49:01 -0800 |
commit | fb18bc0803063d2cf182bfa9e019e3fb7142aefd (patch) | |
tree | 885c76cfe92dcdd8237211d5eb6cad30e3eece6a /desktop-widgets/tab-widgets | |
parent | e3950df86473dc45c1e7aa730a0e19cc51d4a41c (diff) | |
download | subsurface-fb18bc0803063d2cf182bfa9e019e3fb7142aefd.tar.gz |
cleanup: don't update tabs twice in MainTab::rejectChanges
The updateDiveInfo() call updates all tabs. No need to do
it right afterwards.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 9bdf4d35d..cfb442500 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -611,10 +611,6 @@ void MainTab::rejectChanges() clear_dive(&displayed_dive); updateDiveInfo(); - for (auto widget: extraWidgets) { - widget->updateData(); - } - // TODO: This is a temporary hack until the equipment tab is included in the undo system: // The equipment tab is hardcoded at the first place of the "extra widgets". ((TabDiveEquipment *)extraWidgets[0])->rejectChanges(); |