menu: don't add a separatorline ...

... when no button and no section text is given


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5591e81a2b
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-12-19 (Thu, 19 Dec 2013)

Origin message was:
------------------
- menu: don't add a separatorline ...

 ... when no button and no section text is given


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2013-12-19 15:06:12 +01:00
parent 4908089769
commit 769cb90079

View File

@@ -1003,6 +1003,7 @@ void CMenuWidget::addIntroItems(neutrino_locale_t subhead_text, neutrino_locale_
{
if (subhead_text != NONEXISTANT_LOCALE)
addItem(new CMenuSeparator(CMenuSeparator::ALIGN_LEFT | CMenuSeparator::SUB_HEAD | CMenuSeparator::STRING, subhead_text));
addItem(GenericMenuSeparator);
if (buttontype != BTN_TYPE_NO)
@@ -1024,7 +1025,7 @@ void CMenuWidget::addIntroItems(neutrino_locale_t subhead_text, neutrino_locale_
if (section_text != NONEXISTANT_LOCALE)
addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, section_text));
else
else if (buttontype != BTN_TYPE_NO)
addItem(GenericMenuSeparatorLine);
}