diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index e37c7a7bd..9049b741b 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -1733,12 +1733,13 @@ void MainWindow::importFiles(const QStringList fileNames) return; QByteArray fileNamePtr; + struct dive_table table = { 0 }; for (int i = 0; i < fileNames.size(); ++i) { fileNamePtr = QFile::encodeName(fileNames.at(i)); - parse_file(fileNamePtr.data(), &dive_table); + parse_file(fileNamePtr.data(), &table); } - process_imported_dives(false); + process_imported_dives(&table, false); refreshDisplay(); } |