aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-05-24 05:49:31 (GMT)
committerrathnor <rathnor>2003-05-24 05:49:31 (GMT)
commit270cbb65922487faded4b8997bd8cd4f57a2dc95 (patch)
tree4c51a29b404a0df226f3dbbf8f1f100bee307772 /src/FbTk/Menu.cc
parent33a65073a955d850f2a9601ea1368862b36959ff (diff)
downloadfluxbox-270cbb65922487faded4b8997bd8cd4f57a2dc95.zip
fluxbox-270cbb65922487faded4b8997bd8cd4f57a2dc95.tar.bz2
toolbar crash (menu bug) and initialisation fixups
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r--src/FbTk/Menu.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index a42193b..37d40fc 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.22 2003/05/17 10:44:32 fluxgen Exp $ 25// $Id: Menu.cc,v 1.23 2003/05/24 05:49:31 rathnor Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -270,8 +270,7 @@ int Menu::remove(unsigned int index) {
270 270
271void Menu::removeAll() { 271void Menu::removeAll() {
272 while (!menuitems.empty()) { 272 while (!menuitems.empty()) {
273 delete menuitems.back(); 273 remove(0);
274 menuitems.pop_back();
275 } 274 }
276 m_need_update = true; 275 m_need_update = true;
277} 276}