aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-05-24 12:34:16 (GMT)
committerrathnor <rathnor>2003-05-24 12:34:16 (GMT)
commit3e2d57d7c9669eee4be52ae4160e0c9d6c975fde (patch)
treee6a67da23b293712743b1b7311093033354397c0 /src/FbTk/Menu.cc
parent3eafda3f2e6e14eaa1ca8d7ec95e49537301fea3 (diff)
downloadfluxbox-3e2d57d7c9669eee4be52ae4160e0c9d6c975fde.zip
fluxbox-3e2d57d7c9669eee4be52ae4160e0c9d6c975fde.tar.bz2
little correction when removing menu items
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r--src/FbTk/Menu.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 37d40fc..04bcc03 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.23 2003/05/24 05:49:31 rathnor Exp $ 25// $Id: Menu.cc,v 1.24 2003/05/24 12:34:16 rathnor Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -181,10 +181,7 @@ Menu::~Menu() {
181 if (shown && shown->window() == window()) 181 if (shown && shown->window() == window())
182 shown = 0; 182 shown = 0;
183 183
184 while (!menuitems.empty()) { 184 removeAll();
185 delete menuitems.back();
186 menuitems.pop_back();
187 }
188 185
189 if (menu.title_pixmap) 186 if (menu.title_pixmap)
190 m_image_ctrl.removeImage(menu.title_pixmap); 187 m_image_ctrl.removeImage(menu.title_pixmap);