all repos — fluxbox @ 3e2d57d7c9669eee4be52ae4160e0c9d6c975fde

custom fork of the fluxbox windowmanager

little correction when removing menu items
rathnor rathnor
commit

3e2d57d7c9669eee4be52ae4160e0c9d6c975fde

parent

3eafda3f2e6e14eaa1ca8d7ec95e49537301fea3

1 files changed, 2 insertions(+), 5 deletions(-)

jump to
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.23 2003/05/24 05:49:31 rathnor Exp $ +// $Id: Menu.cc,v 1.24 2003/05/24 12:34:16 rathnor Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -181,10 +181,7 @@

if (shown && shown->window() == window()) shown = 0; - while (!menuitems.empty()) { - delete menuitems.back(); - menuitems.pop_back(); - } + removeAll(); if (menu.title_pixmap) m_image_ctrl.removeImage(menu.title_pixmap);