ide: Toolbar/MenuItem integration tweak to support specifying master & parent of...
authorJerome St-Louis <jerome@ecere.com>
Tue, 28 Feb 2012 00:59:39 +0000 (19:59 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 1 Mar 2012 04:53:40 +0000 (23:53 -0500)
ide/src/ide.ec

index d4756b9..f7a4714 100644 (file)
@@ -225,8 +225,8 @@ public class ToolButton : public Button
    {
       if(menuItemPtr)
       {
-         Window parent = this.parent;
-         if(parent && parent.parent && master != parent)
+         Window master = this.master;
+         if(master && master.parent && !eClass_IsDerived(master._class, class(Stacker)))
          {
             MenuItem menuItem = this.menuItem;
             BitmapResource bmp;