diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-25 10:55:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-25 10:55:40 -0700 |
commit | ea1f75d8d671d919642b13909045d2648dab51c3 (patch) | |
tree | b812e5bc4c74af6ba124c8c1a74fdb0edd12ddb5 /qt-ui/mainwindow.cpp | |
parent | f2b1132c339856064cabbe790b5eb2d71ed409f5 (diff) | |
download | subsurface-ea1f75d8d671d919642b13909045d2648dab51c3.tar.gz |
Don't show datafile version warning if no file was opened
Also remove most of the hard new lines in the text so it flows better
depending on the font size used.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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.")); } } |