mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Show warning if user loads an old datafile
Show the user a warning if he opens an old version of the divelog file, the warning tries to explain some things that are different on the new version. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7071bf0e23
commit
e27f9ab0a6
1 changed files with 10 additions and 1 deletions
|
@ -1542,9 +1542,18 @@ void MainWindow::loadFiles(const QStringList fileNames)
|
|||
addRecentFile(fileNames);
|
||||
removeRecentFile(failedParses);
|
||||
|
||||
|
||||
refreshDisplay();
|
||||
ui.actionAutoGroup->setChecked(autogroup);
|
||||
|
||||
if (get_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"
|
||||
"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"
|
||||
"sure that everything looks correct."));
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionImportDiveLog_triggered()
|
||||
|
|
Loading…
Reference in a new issue