changeset 161:35cb22cf1870

- Removed some no longer necessary add() calls from popup menus.
author jcid
date Wed, 02 Apr 2008 22:17:14 +0200
parents c4badc5f1927
children 7a0dad1cffe0
files src/menu.cc
diffstat 1 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/menu.cc	Sat Mar 29 16:49:05 2008 +0100
+++ b/src/menu.cc	Wed Apr 02 22:17:14 2008 +0200
@@ -276,9 +276,6 @@
    // NULL is wildcard
    load_images_item->user_data(NULL);
 
-   // Make the popup a child of the calling UI object
-   ((Group *)bw->ui)->add(pm);
-
    pm->popup();
 }
 
@@ -311,9 +308,6 @@
       pm->end();
    }
 
-   // Make the popup a child of the calling UI object
-   ((Group *)bw->ui)->add(pm);
-
    pm->popup();
 }
 
@@ -371,9 +365,6 @@
 
    load_menuitem->user_data(userdata_url);
  
-   // Make the popup a child of the calling UI object
-   ((Group *)bw->ui)->add(pm);
-
    pm->popup();
 
    a_Url_free(userdata_url);
@@ -404,9 +395,6 @@
       pm->end();
    }
 
-   // Make the popup a child of the calling UI object
-   //((Group *)bw->ui)->add(pm);
-
    pm->popup();
 }
 
@@ -449,10 +437,6 @@
    pm->type(PopupMenu::POPUP123);
    pm->end();
 
-   // Make the popup a child of the calling UI object
-   // I don't know whether this is necessary...
-   ((Group *)bw->ui)->add(pm);
-
    pm->popup();
 }