mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move process_import_dives() and related functions to divelog
These functions accessed the global divelog make this explicit. I'm still not happy about the situation, because these functions access global state, such as the selection. I think these should be moved up the call-chain. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b34116e2e2
commit
176f544106
14 changed files with 500 additions and 494 deletions
|
@ -25,7 +25,7 @@ public:
|
|||
struct divelog consumeTables(); // Returns downloaded tables and resets model.
|
||||
|
||||
int numDives() const;
|
||||
Q_INVOKABLE void recordDives(int flags = IMPORT_PREFER_IMPORTED | IMPORT_IS_DOWNLOADED);
|
||||
Q_INVOKABLE void recordDives(int flags = import_flags::prefer_imported | import_flags::is_downloaded);
|
||||
Q_INVOKABLE void startDownload();
|
||||
Q_INVOKABLE void waitForDownload();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue