summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorObey Arthur Liu <arthur@milliways.fr>2008-12-01 00:56:20 +0100
committerObey Arthur Liu <arthur@milliways.fr>2008-12-01 00:56:20 +0100
commitcc6b98d1295a474254dd5ded4da7968a2d0446bd (patch)
tree02a353f6db94594c68c0a2b425ef310ed09b2040
parent6a22ebbdc66ed3e3a772a68113b9b7ebd8a3f727 (diff)
downloadaptitude-cc6b98d1295a474254dd5ded4da7968a2d0446bd.tar.gz
Clear the package menu before repopulating it.
-rw-r--r--src/gtk/entityview.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtk/entityview.cc b/src/gtk/entityview.cc
index 0c5e3b91..2760a821 100644
--- a/src/gtk/entityview.cc
+++ b/src/gtk/entityview.cc
@@ -494,6 +494,7 @@ namespace gui
if(!actions.empty())
{
+ pMainWindow->get_menu_package()->items().clear();
get_menu(actions, sigc::mem_fun(this, &EntityView::apply_action_to_selected), pMainWindow->get_menu_package());
}
}