diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-12-23 23:50:33 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-09 20:58:04 -0800 |
commit | ea40370389a5423e54ce2ef3fbab9d7bd76a7802 (patch) | |
tree | 05174ce88b0989cffcdd7e0ba34fc02faef165d0 /desktop-widgets/command_divelist.h | |
parent | 82c47bdd794c05e51c73afda14b8bfc95f6694e1 (diff) | |
download | subsurface-ea40370389a5423e54ce2ef3fbab9d7bd76a7802.tar.gz |
Cleanup: remove explicit constructor of DiveListBase
DiveListBase had an explicit constructor that initialized the
"firstExecution" member variable. The latter was a development-
artifact that was never used. Remove the member and the constructor.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command_divelist.h')
-rw-r--r-- | desktop-widgets/command_divelist.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/desktop-widgets/command_divelist.h b/desktop-widgets/command_divelist.h index 8cf8986e3..8eca0bb57 100644 --- a/desktop-widgets/command_divelist.h +++ b/desktop-widgets/command_divelist.h @@ -52,8 +52,6 @@ struct DivesToTrip // flag accordingly. class DiveListBase : public Base { protected: - DiveListBase(); - // These are helper functions to add / remove dive from the C-core structures, // which set the selectionChanged flag if the added / removed dive was selected. DiveToAdd removeDive(struct dive *d, std::vector<OwningTripPtr> &tripsToAdd); @@ -64,13 +62,6 @@ protected: // Set the selection to a given state. Set the selectionChanged flag if anything changed. void restoreSelection(const std::vector<dive *> &selection, dive *currentDive); - // On first execution, the selections before and after execution will - // be remembered. On all further executions, the selection will be reset to - // the remembered values. - // Note: Therefore, commands should manipulate the selection and send the - // corresponding signals only on first execution! - bool firstExecution; - // Commands set this flag if the selection changed on first execution. // Only then, a new the divelist will be scanned again after the command. // If this flag is set on first execution, a selectionChanged signal will |