ecere/Window: Change to how children cycles are added
authorJerome St-Louis <jerome@ecere.com>
Sat, 11 May 2013 04:20:10 +0000 (00:20 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 11 May 2013 04:20:10 +0000 (00:20 -0400)
- Fixed tab cycling order issues in WSMS custom reports

ecere/src/gui/Window.ec

index b2f90e3..8caa7a8 100644 (file)
@@ -7894,7 +7894,9 @@ public:
                {
                   if(!style.noCycle)
                      parent.childrenCycle.Insert(
-                        (parent.activeChild && parent.activeChild.cycle) ? parent.activeChild.cycle.prev : null, 
+                        // Note: changed to 'null' to fix broken tab cycling in WSMS custom reports
+                        //(parent.activeChild && parent.activeChild.cycle) ? parent.activeChild.cycle.prev : null, 
+                        null,
                         cycle = OldLink { data = this });
                   parent.childrenOrder.Insert(
                      (parent.activeChild && parent.activeChild.order) ? parent.activeChild.order.prev : parent.childrenOrder.last, 
@@ -8268,7 +8270,9 @@ public:
                if(!style.noCycle)
                {
                   parent.childrenCycle.Insert(
-                     (parent.activeChild && parent.activeChild.cycle) ? parent.activeChild.cycle.prev : null, 
+                     // Note: changed to 'null' to fix broken tab cycling in WSMS custom reports
+                     //(parent.activeChild && parent.activeChild.cycle) ? parent.activeChild.cycle.prev : null, 
+                     null,
                      cycle = OldLink { data = this });
                }
                parent.childrenOrder.Insert(