summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/subsurfacewebservices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.cpp')
-rw-r--r--desktop-widgets/subsurfacewebservices.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp
index a7586c128..693463bf1 100644
--- a/desktop-widgets/subsurfacewebservices.cpp
+++ b/desktop-widgets/subsurfacewebservices.cpp
@@ -767,8 +767,9 @@ void DivelogsDeWebServices::buttonClicked(QAbstractButton *button)
break;
}
/* parse file and import dives */
- parse_file(QFile::encodeName(zipFile.fileName()), &dive_table);
- process_imported_dives(false);
+ struct dive_table table = { 0 };
+ parse_file(QFile::encodeName(zipFile.fileName()), &table);
+ process_imported_dives(&table, false);
MainWindow::instance()->refreshDisplay();
/* store last entered user/pass in config */