summaryrefslogtreecommitdiffstats
path: root/core/trip.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-02 14:34:40 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-03 15:02:21 -0700
commit09b7fcbcf4e26d19529486ddd2a0e672e60dce32 (patch)
tree06df630ace17077474fdec09a43c3aace1aa6d5d /core/trip.h
parent649b2f2a9ea581e4fbb97a6fd8cc519af880aaf2 (diff)
downloadsubsurface-09b7fcbcf4e26d19529486ddd2a0e672e60dce32.tar.gz
selection: add selection flag for trips
In analogy to dives add a selection flag for trips. The reason being that search for a selected trip can be painfully slow when we do it through Qt's proxy model. Make sure to deselect trips when they are removed from the core. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/trip.h')
-rw-r--r--core/trip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/trip.h b/core/trip.h
index c9335fc0a..976275736 100644
--- a/core/trip.h
+++ b/core/trip.h
@@ -17,6 +17,7 @@ typedef struct dive_trip
/* Used by the io-routines to mark trips that have already been written. */
bool saved;
bool autogen;
+ bool selected;
} dive_trip_t;
typedef struct trip_table {