From: Lars Op den Kamp Date: Tue, 28 Feb 2012 00:50:40 +0000 (+0100) Subject: cec-config-gui: fix 'enabled' status of cbPortNumber now that libCEC no longer unsets... X-Git-Tag: upstream/2.2.0~1^2~33^2~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9f8f2139da283d0ecadf9704f66480221d42979f;p=deb_libcec.git cec-config-gui: fix 'enabled' status of cbPortNumber now that libCEC no longer unsets the autodetect bool --- 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);