From 769cb90079a50c296aa123895d2c8b29e94dd5f9 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 19 Dec 2013 15:06:12 +0100 Subject: [PATCH] menu: don't add a separatorline ... ... when no button and no section text is given Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/5591e81a2bb20fd1bbfc2f9da943f32d5fdf68af Author: vanhofen 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 --- src/gui/widget/menue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index fa9e9fd90..e7bfa8728 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -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); }