summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 06:45:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 06:45:12 -0700
commitde35c886837016c80fc65043d8a2f0b373efec5b (patch)
tree87eaf634a88f557d88d9580d5b5ad759f9e1ceeb /qt-ui
parent70d4421cd0ab235ee4f37ed7f8b6ad863da703bb (diff)
downloadsubsurface-de35c886837016c80fc65043d8a2f0b373efec5b.tar.gz
Track minimum datafile version
Add infrastructure and helper functions to track minimum datafile version. To make this information useful we need to keep the XML and git data format versions in track moving forward. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 0095aaf97..d9a2769c2 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -458,6 +458,8 @@ void MainWindow::closeCurrentFile()
free((void *)existing_filename);
existing_filename = NULL;
+ reset_min_datafile_version();
+
cleanUpEmpty();
mark_divelist_changed(false);