ecere/gui/controls/TabControl: Resetting tabs 'checked' when added back
authorJerome St-Louis <jerome@ecere.com>
Fri, 22 Apr 2016 11:02:57 +0000 (07:02 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 29 Apr 2016 16:27:16 +0000 (12:27 -0400)
- Was having multiple tabs to be highlighted at once

ecere/src/gui/controls/TabControl.ec

index 94a7cc1..d1c3d8e 100644 (file)
@@ -608,6 +608,8 @@ public class TabControl : Window
          tab.button.checked = true;
          tab.autoCreate = true;
       }
+      else
+         tab.button.checked = false;
 
       PlaceButton(tab.button, placement, curTab == tab, buttonsOffset);
       switch(placement)