From 754a463b38dfee23d860bb8dd967dfe6c67c8553 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 11 Feb 2026 21:28:21 -0500 Subject: [PATCH] Qt: don't allow display types to be deselected. --- OSBindings/Qt/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OSBindings/Qt/mainwindow.cpp b/OSBindings/Qt/mainwindow.cpp index feea3553b..0ec67ff96 100644 --- a/OSBindings/Qt/mainwindow.cpp +++ b/OSBindings/Qt/mainwindow.cpp @@ -414,7 +414,6 @@ void MainWindow::launchMachine() { return std::find(allDisplayValues.begin(), allDisplayValues.end(), name) != allDisplayValues.end(); }; - const bool hasCompositeColour = contains(Configurable::Display::CompositeColour); const bool hasCompositeMonochrome = contains(Configurable::Display::CompositeMonochrome); const bool hasSVideo = contains(Configurable::Display::SVideo); @@ -554,7 +553,7 @@ void MainWindow::addDisplayMenu( action->setChecked(displaySelection == defaultDisplay); connect(action, &QAction::triggered, this, [=, this] { for(auto otherAction: {compositeColourAction, compositeMonochromeAction, sVideoAction, rgbAction}) { - if(otherAction && otherAction != action) otherAction->setChecked(false); + if(otherAction) otherAction->setChecked(otherAction == action); } Settings settings;