aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/menu.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/menu.cc b/src/menu.cc
index 014668eb..dba66980 100644
--- a/src/menu.cc
+++ b/src/menu.cc
@@ -276,9 +276,6 @@ void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url,
// 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 @@ void a_Menu_link_popup(BrowserWindow *bw, const DilloUrl *url)
pm->end();
}
- // Make the popup a child of the calling UI object
- ((Group *)bw->ui)->add(pm);
-
pm->popup();
}
@@ -371,9 +365,6 @@ void a_Menu_image_popup(BrowserWindow *bw, const DilloUrl *url,
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 @@ void a_Menu_bugmeter_popup(BrowserWindow *bw, const DilloUrl *url)
pm->end();
}
- // Make the popup a child of the calling UI object
- //((Group *)bw->ui)->add(pm);
-
pm->popup();
}
@@ -449,10 +437,6 @@ void a_Menu_history_popup(BrowserWindow *bw, int direction)
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();
}