mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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:
parent
e6553f8218
commit
ee3ed8a163
5 changed files with 32 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue