mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
neutrino: initialize CKeyValue() in constructor, not only on paint()
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@310 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -49,9 +49,10 @@ class CKeyValue : public CMenuSeparator
|
|||||||
public:
|
public:
|
||||||
int keyvalue;
|
int keyvalue;
|
||||||
|
|
||||||
CKeyValue() : CMenuSeparator(CMenuSeparator::STRING, LOCALE_KEYCHOOSERMENU_CURRENTKEY)
|
CKeyValue(int k) : CMenuSeparator(CMenuSeparator::STRING, LOCALE_KEYCHOOSERMENU_CURRENTKEY)
|
||||||
{
|
{
|
||||||
};
|
keyvalue = k;
|
||||||
|
};
|
||||||
|
|
||||||
virtual const char * getString(void)
|
virtual const char * getString(void)
|
||||||
{
|
{
|
||||||
@@ -71,7 +72,7 @@ CKeyChooser::CKeyChooser(int * const Key, const neutrino_locale_t title, const s
|
|||||||
keyChooser = new CKeyChooserItem(LOCALE_KEYCHOOSER_HEAD, key);
|
keyChooser = new CKeyChooserItem(LOCALE_KEYCHOOSER_HEAD, key);
|
||||||
keyDeleter = new CKeyChooserItemNoKey(key);
|
keyDeleter = new CKeyChooserItemNoKey(key);
|
||||||
|
|
||||||
addItem(new CKeyValue());
|
addItem(new CKeyValue(*key));
|
||||||
addItem(GenericMenuSeparatorLine);
|
addItem(GenericMenuSeparatorLine);
|
||||||
addItem(GenericMenuBack);
|
addItem(GenericMenuBack);
|
||||||
addItem(GenericMenuSeparatorLine);
|
addItem(GenericMenuSeparatorLine);
|
||||||
|
Reference in New Issue
Block a user