summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-07-07 21:40:44 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-07-07 21:40:44 +0000
commitee3ed8a163823c2ee7f087985b7a36e10806f5f6 (patch)
tree90ddf4bca6021f759cf3f98cacd6e207311a843b /rbutil/rbutilqt/rbutilqt.cpp
parente6553f821881ace5f904fb077ae8a1aba7154474 (diff)
handle new installations (or upgrades) differently from invalid configurations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp15
1 files changed, 11 insertions, 4 deletions
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();
}
}