core: move data file version functions into version.cpp/h

It is unclear why these were located in divelist.cpp/h.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-25 14:33:36 +02:00 committed by bstoeger
parent 72bb38601d
commit 60c7b503cf
9 changed files with 44 additions and 34 deletions

View file

@ -1328,7 +1328,7 @@ void MainWindow::loadFiles(const std::vector<std::string> &fileNames)
updateAutogroup();
int min_datafile_version = get_min_datafile_version();
if (min_datafile_version >0 && min_datafile_version < DATAFORMAT_VERSION) {
if (min_datafile_version >0 && min_datafile_version < dataformat_version) {
QMessageBox::warning(this, tr("Opening datafile from older version"),
tr("You opened a data file from an older version of Subsurface. We recommend "
"you read the manual to learn about the changes in the new version, especially "