From 9f8f2139da283d0ecadf9704f66480221d42979f Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 28 Feb 2012 01:50:40 +0100 Subject: [PATCH] cec-config-gui: fix 'enabled' status of cbPortNumber now that libCEC no longer unsets the autodetect bool --- src/cec-config-gui/CecConfigGUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cec-config-gui/CecConfigGUI.cs b/src/cec-config-gui/CecConfigGUI.cs index 5004e04..929beba 100644 --- a/src/cec-config-gui/CecConfigGUI.cs +++ b/src/cec-config-gui/CecConfigGUI.cs @@ -324,7 +324,7 @@ namespace CecConfigGui private void SetControlsEnabled(bool val) { - SetControlEnabled(cbPortNumber, val && !Config.AutodetectAddress); + SetControlEnabled(cbPortNumber, val && !Config.AutodetectAddress && Config.PhysicalAddress != 0); SetControlEnabled(cbConnectedDevice, cbConnectedDevice.Items.Count > 1 && !Config.AutodetectAddress ? val : false); SetControlEnabled(cbOverrideAddress, val); SetControlEnabled(tbPhysicalAddress, val && !Config.AutodetectAddress && cbOverrideAddress.Checked); -- 2.34.1