little correction when removing menu items
This commit is contained in:
parent
3eafda3f2e
commit
3e2d57d7c9
1 changed files with 2 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
//use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -181,10 +181,7 @@ Menu::~Menu() {
|
||||||
if (shown && shown->window() == window())
|
if (shown && shown->window() == window())
|
||||||
shown = 0;
|
shown = 0;
|
||||||
|
|
||||||
while (!menuitems.empty()) {
|
removeAll();
|
||||||
delete menuitems.back();
|
|
||||||
menuitems.pop_back();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (menu.title_pixmap)
|
if (menu.title_pixmap)
|
||||||
m_image_ctrl.removeImage(menu.title_pixmap);
|
m_image_ctrl.removeImage(menu.title_pixmap);
|
||||||
|
|
Loading…
Reference in a new issue