make the dialog box asking about replacing an up-to-date bootloader less confusing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15214 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f697158de1
commit
80ad919e26
1 changed files with 5 additions and 13 deletions
|
@ -564,20 +564,12 @@ void RbUtilQt::installBootloader()
|
|||
if(blinstaller->uptodate())
|
||||
{
|
||||
int ret = QMessageBox::question(this, tr("Bootloader Installation"),
|
||||
tr("It seem your Bootloader is already up to date.\n"
|
||||
"Do really want to install it?"),
|
||||
QMessageBox::Ok | QMessageBox::Ignore |QMessageBox::Cancel,
|
||||
QMessageBox::Cancel);
|
||||
if(ret == QMessageBox::Cancel)
|
||||
tr("The bootloader is already installed and up to date.\n"
|
||||
"Do want to replace the current bootloader?"),
|
||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
|
||||
if(ret == QMessageBox::No)
|
||||
{
|
||||
logger->addItem(tr("Bootloader installation canceled!"),LOGERROR);
|
||||
logger->abort();
|
||||
m_error = true;
|
||||
return;
|
||||
}
|
||||
else if(ret == QMessageBox::Ignore)
|
||||
{
|
||||
logger->addItem(tr("Bootloader installation skipped!"),LOGERROR);
|
||||
logger->addItem(tr("Bootloader installation skipped!"), LOGINFO);
|
||||
logger->abort();
|
||||
m_installed = true;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue