From ea1f75d8d671d919642b13909045d2648dab51c3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 25 Jun 2015 10:55:40 -0700 Subject: 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 --- qt-ui/mainwindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'qt-ui') 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.")); } } -- cgit v1.2.3-70-g09d2