mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Import: Move the Import of .FIT Files to 'Import log files'
Move the import of .FIT files into the 'Import log files' menu item, where most people will be looking for it. This also naturally opens a file selection dialog, which is more intuitive than having to select this in the dive computer import dialog. Also fix a bug affecting file imports if the log files contain coordinates - the dive log needs to be set in the import data structure. And refactor the file dialog file filters to make it more natural to add more entries. Requires https://github.com/subsurface/libdc/pull/72 to work. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
feb70907e5
commit
5889c1a3f8
12 changed files with 77 additions and 72 deletions
|
@ -899,6 +899,7 @@ void smartrak_import(const char *file, struct divelog *log)
|
|||
}
|
||||
while (mdb_table.fetch_row()) {
|
||||
device_data_t devdata;
|
||||
devdata.log = log;
|
||||
dc_family_t dc_fam = DC_FAMILY_NULL;
|
||||
unsigned char *prf_buffer, *hdr_buffer;
|
||||
auto smtkdive = std::make_unique<dive>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue