Changeset 4809

Show
Ignore:
Timestamp:
06/09/08 09:58:09 (5 months ago)
Author:
risto.yrjana@…
Message:

Fix for #1787

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • incubator/widgets/menubar/src/com/itmill/toolkit/ui/MenuBar.java

    r4806 r4809  
    438438            if (item != null && itsChildren != null) { 
    439439                itsChildren.remove(item); 
     440                if (itsChildren.isEmpty()) { 
     441                    itsChildren = null; 
     442                } 
    440443            } 
    441444            requestRepaint(); 
     
    448451            if (itsChildren != null) { 
    449452                itsChildren.clear(); 
     453                itsChildren = null; 
    450454            } 
    451455            requestRepaint();