mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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:
parent
f437d78f0c
commit
10c1fef096
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue