diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-04 23:20:29 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | c22fd9f4fd6699333629b8acb1e9c135a9783082 (patch) | |
tree | 7fad8249eb4fb3fa2797329716b1038d115a62d9 /desktop-widgets/divelogimportdialog.cpp | |
parent | f2cdca7bccfcdfa04639600689b2b13b38b56898 (diff) | |
download | subsurface-c22fd9f4fd6699333629b8acb1e9c135a9783082.tar.gz |
Dive sites: prepare for dive site ref-counting
Add a dive site table to each dive site to keep track of dives
that have been added to a dive site. Add two functions to add
dives to / remove dives from dive sites.
Since dive sites now contain a dive table, the order of includes
had to be changed: "divesite.h" now includes "dive.h" and not
vice-versa. This caused some include churn.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelogimportdialog.cpp')
-rw-r--r-- | desktop-widgets/divelogimportdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/divelogimportdialog.cpp b/desktop-widgets/divelogimportdialog.cpp index 0bbb0dcb5..a6242ec8d 100644 --- a/desktop-widgets/divelogimportdialog.cpp +++ b/desktop-widgets/divelogimportdialog.cpp @@ -11,6 +11,7 @@ #include <QUndoStack> #include <QPainter> #include "core/qthelper.h" +#include "core/divesite.h" #include "core/import-csv.h" static QString subsurface_mimedata = "subsurface/csvcolumns"; |