From 9f0d28440b7be5be79bbee2b7f8f1ba3df16bbe2 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 11 Nov 2015 13:52:26 +0000 Subject: [PATCH] Checked if the Placekeeper and Placekeeper Cont Action buttons are enabled before toggling them on/off with the shortcut keystrokes --- PROMS/Volian.Controls.Library/DisplayTags.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplayTags.cs b/PROMS/Volian.Controls.Library/DisplayTags.cs index 9988b513..9b5e6d06 100644 --- a/PROMS/Volian.Controls.Library/DisplayTags.cs +++ b/PROMS/Volian.Controls.Library/DisplayTags.cs @@ -151,11 +151,13 @@ namespace Volian.Controls.Library } public void TogglePlaceKeeper() // for use with shortcut keystroke { - cbPlaceKeeper.Checked = !cbPlaceKeeper.Checked; + if (cbPlaceKeeper.Enabled) + cbPlaceKeeper.Checked = !cbPlaceKeeper.Checked; } public void TogglePlaceKeeperContAct() // for use with shortcut keystroke F7> { - cbPlaceKeeperCont.Checked = !cbPlaceKeeperCont.Checked; + if (cbPlaceKeeperCont.Enabled) + cbPlaceKeeperCont.Checked = !cbPlaceKeeperCont.Checked; } public void UpdatePageBreakCheckBox() // for use with shortcut keystroke {