diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Menu.cc | 5 |
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 | ||
271 | void Menu::removeAll() { | 271 | void 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 | } |