Fix automated install not aborting when bootloader installation was canceled during prerequisite confirmation. Add info to the log window when cancelled or skipped.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20147 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-02-28 23:11:26 +00:00
parent f437d78f0c
commit 10c1fef096

View file

@ -462,8 +462,10 @@ bool RbUtilQt::smallInstallInner()
m_error = false;
m_installed = false;
m_auto = true;
if(!installBootloaderAuto())
if(!installBootloaderAuto()) {
logger->abort();
return true;
}
else
{
// wait for boot loader installation finished
@ -665,6 +667,7 @@ void RbUtilQt::installBootloader()
if(m_auto) {
// keep logger open for auto installs.
// don't consider abort as error in auto-mode.
logger->addItem(tr("Bootloader installation skipped"), LOGINFO);
installBootloaderPost(false);
}
else {
@ -714,7 +717,10 @@ void RbUtilQt::installBootloader()
"file."),
QMessageBox::Ok | QMessageBox::Abort);
if(ret != QMessageBox::Ok) {
// consider aborting an error to close window / abort automatic
// installation.
m_error = true;
logger->addItem(tr("Bootloader installation aborted"), LOGINFO);
return;
}
// open dialog to browse to hex file