diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 03d278e9e..6acc3eeac 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1545,13 +1545,14 @@ void MainWindow::loadFiles(const QStringList fileNames) refreshDisplay(); ui.actionAutoGroup->setChecked(autogroup); - if (get_min_datafile_version() < DATAFORMAT_VERSION) { + int min_datafile_version = get_min_datafile_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\n " - "to read the manual to learn about the changes in the new version, especially\n" + tr("You opened a data file from an older version of Subsurface. We recommend " + "to read the manual to learn about the changes in the new version, especially " "about dive site management which changed significantly.\n" - "Subsurface already tried to prepopulate the data but it might be worth\n" - "while to take a look at the new dive site management system and to make\n" + "Subsurface already tried to prepopulate the data but it might be worth " + "while to take a look at the new dive site management system and to make " "sure that everything looks correct.")); } } |