handle new installations (or upgrades) differently from invalid configurations

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17983 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2008-07-07 21:40:44 +00:00
parent e6553f8218
commit ee3ed8a163
5 changed files with 32 additions and 7 deletions

View file

@ -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();
}
}