mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
neutrino menue: remove resetWidget() from destructor
resetWidget() is only meant to have a possibility to refill
into a clean widget with items
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2024 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: d9df92bfa8
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-12-30 (Fri, 30 Dec 2011)
Origin message was:
------------------
*neutrino menue: remove resetWidget() from destructor
resetWidget() is only meant to have a possibility to refill
into a clean widget with items
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2024 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -374,7 +374,18 @@ void CMenuWidget::move(int xoff, int yoff)
|
|||||||
|
|
||||||
CMenuWidget::~CMenuWidget()
|
CMenuWidget::~CMenuWidget()
|
||||||
{
|
{
|
||||||
resetWidget();
|
for(unsigned int count=0;count<items.size();count++) {
|
||||||
|
CMenuItem * item = items[count];
|
||||||
|
if ((item != GenericMenuSeparator) &&
|
||||||
|
(item != GenericMenuSeparatorLine) &&
|
||||||
|
(item != GenericMenuBack) &&
|
||||||
|
(item != GenericMenuCancel)){
|
||||||
|
delete item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
items.clear();
|
||||||
|
page_start.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMenuWidget::addItem(CMenuItem* menuItem, const bool defaultselected)
|
void CMenuWidget::addItem(CMenuItem* menuItem, const bool defaultselected)
|
||||||
|
Reference in New Issue
Block a user