summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/downloadfromdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-21 12:17:24 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-23 11:49:30 -0700
commit99261775ceede62e19422f6c909439a619d65ee0 (patch)
tree21c4e746c5cc976fdb1b10b8cf13f4c0c4442701 /desktop-widgets/downloadfromdivecomputer.h
parente2ee8c57dfd85d26c3697f5c5f0e7f45e462be1e (diff)
downloadsubsurface-99261775ceede62e19422f6c909439a619d65ee0.tar.gz
Desktop/remember DCs: remember dive computers that were used
The algorithm tries to keep the order of the buttons the same. So if a dive computer was used that's already remembered, don't reorder the buttons. But if a new dive computer is used, add it as the first one and move the others back, potentially dropping the oldest one. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.h')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.h b/desktop-widgets/downloadfromdivecomputer.h
index b357f186f..f9cc83e64 100644
--- a/desktop-widgets/downloadfromdivecomputer.h
+++ b/desktop-widgets/downloadfromdivecomputer.h
@@ -59,6 +59,7 @@ private:
void markChildrenAsDisabled();
void markChildrenAsEnabled();
void updateDeviceEnabled();
+ void updateRememberedDCs();
QStringListModel vendorModel;
QStringListModel productModel;