summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/gui/selectiveinstallwidget.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
index ec55a81..dfa9631 100644
--- a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
+++ b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
@@ -123,6 +123,7 @@ void SelectiveInstallWidget::updateVersion(void)
// well as if the selected player doesn't need a bootloader.
if(m_blmethod == "none") {
ui.bootloaderCheckbox->setEnabled(false);
+ ui.bootloaderCheckbox->setChecked(false);
ui.bootloaderLabel->setEnabled(false);
ui.bootloaderLabel->setText(tr("The selected player doesn't need a bootloader."));
}
@@ -132,12 +133,12 @@ void SelectiveInstallWidget::updateVersion(void)
ui.bootloaderLabel->setText(tr("The bootloader is required for starting "
"Rockbox. Installation of the bootloader is only necessary "
"on first time installation."));
+ // check if Rockbox is installed by looking after rockbox-info.txt.
+ // If installed uncheck bootloader installation.
+ RockboxInfo info(m_mountpoint);
+ ui.bootloaderCheckbox->setChecked(!info.success());
}
- // check if Rockbox is installed by looking after rockbox-info.txt.
- // If installed uncheck bootloader installation.
- RockboxInfo info(m_mountpoint);
- ui.bootloaderCheckbox->setChecked(!info.success());
}
@@ -209,10 +210,12 @@ void SelectiveInstallWidget::continueInstall(bool error)
if(m_installStage > 6) {
qDebug() << "[SelectiveInstallWidget] All install stages done.";
m_logger->setFinished();
- // check if Rockbox is installed by looking after rockbox-info.txt.
- // If installed uncheck bootloader installation.
- RockboxInfo info(m_mountpoint);
- ui.bootloaderCheckbox->setChecked(!info.success());
+ if(m_blmethod != "none") {
+ // check if Rockbox is installed by looking after rockbox-info.txt.
+ // If installed uncheck bootloader installation.
+ RockboxInfo info(m_mountpoint);
+ ui.bootloaderCheckbox->setChecked(!info.success());
+ }
}
}