From 1ff11b627b92163a267a6ff821db8c7d786da0b1 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 12 Mar 2022 21:06:19 +0100 Subject: [PATCH] rbutil: Fix bootloader uninstall availability. The logic for disabling the uninstall button was wrong. Change-Id: Icec4b70a7323bb6ae275e7b88fff414450ba4566 --- utils/rbutilqt/rbutilqt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/rbutilqt/rbutilqt.cpp b/utils/rbutilqt/rbutilqt.cpp index 271d252391..20828849a9 100644 --- a/utils/rbutilqt/rbutilqt.cpp +++ b/utils/rbutilqt/rbutilqt.cpp @@ -367,10 +367,10 @@ void RbUtilQt::updateDevice() playerBuildInfo->value(PlayerBuildInfo::BootloaderMethod).toString()); /* Disable uninstallation actions if they are not supported. */ - bool bootloaderUninstallable = !(bootloaderCapabilities & BootloaderInstallBase::Uninstall); - ui.labelRemoveBootloader->setEnabled(bootloaderUninstallable); - ui.buttonRemoveBootloader->setEnabled(bootloaderUninstallable); - ui.actionRemove_bootloader->setEnabled(bootloaderUninstallable); + bool canUninstall = (bootloaderCapabilities & BootloaderInstallBase::Uninstall); + ui.labelRemoveBootloader->setEnabled(canUninstall); + ui.buttonRemoveBootloader->setEnabled(canUninstall); + ui.actionRemove_bootloader->setEnabled(canUninstall); /* Disable the whole tab widget if configuration is invalid */ bool configurationValid = !chkConfig(nullptr);