From ee3ed8a163823c2ee7f087985b7a36e10806f5f6 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 7 Jul 2008 21:40:44 +0000 Subject: handle new installations (or upgrades) differently from invalid configurations git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17983 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/rbutilqt.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'rbutil/rbutilqt/rbutilqt.cpp') diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 7f2bf0cbed..59ce4839f7 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp @@ -176,13 +176,20 @@ void RbUtilQt::downloadDone(bool error) bleeding->setFile(&bleedingInfo); bleeding->getFile(QUrl(settings->bleedingInfo())); - if(chkConfig(false)) { + if(settings->curVersion() != PUREVERSION) { + QApplication::processEvents(); + QMessageBox::information(this, tr("New installation"), + tr("This is a new installation of Rockbox Utility, or a new version. " + "The configuration dialog will now open to allow you to setup the program, " + " or review your settings.")); + configDialog(); + } + else if(chkConfig(false)) { QApplication::processEvents(); QMessageBox::critical(this, tr("Configuration error"), tr("Your configuration is invalid. This is most likely due " - "to a new installation of Rockbox Utility or a changed device " - "path. The configuration dialog will now open to allow you to " - "correct the problem.")); + "to a changed device path. The configuration dialog will " + "now open to allow you to correct the problem.")); configDialog(); } } -- cgit v1.2.3