summaryrefslogtreecommitdiff
path: root/src/CommandItemSetup.cpp
diff options
context:
space:
mode:
authorsvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-09-30 14:14:04 +0000
committersvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-09-30 14:14:04 +0000
commit5c11a7ca61041493f79270e16d53f3590269241e (patch)
tree1c6b5e65482fb35ba76811da3317a1b0b7387e82 /src/CommandItemSetup.cpp
parent57727fe0d496c1e5bc1cf2c0ee3a462be48d4649 (diff)
downloadvdr-plugin-menuorg-5c11a7ca61041493f79270e16d53f3590269241e.tar.gz
vdr-plugin-menuorg-5c11a7ca61041493f79270e16d53f3590269241e.tar.bz2
fixed compile errors
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6176 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/CommandItemSetup.cpp')
-rw-r--r--src/CommandItemSetup.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/CommandItemSetup.cpp b/src/CommandItemSetup.cpp
index ed35660..125e7b2 100644
--- a/src/CommandItemSetup.cpp
+++ b/src/CommandItemSetup.cpp
@@ -25,9 +25,11 @@
cCommandItemSetup::cCommandItemSetup(CommandMenuNode* node)
:cOsdMenu(tr("Edit Command Menu Item"))
{
- _newName = node->Text();
- _newCommand = node->Command();
- _newConfirm = node->ShouldConfirm();
+ asprintf(&_newName, "%s", node->Text().c_str());
+ asprintf(&_newCommand, "%s", node->Command().c_str());
+// _newName = node->Text();
+// _newCommand = node->Command();
+ _newConfirm = (int) node->ShouldConfirm();
CreateMenuItems();
}
@@ -36,7 +38,6 @@ cCommandItemSetup::~cCommandItemSetup()
// TODO: write back the changes
free(_newName);
free(_newCommand);
- free(_newConfirm);
}
void cCommandItemSetup::CreateMenuItems()
@@ -48,7 +49,7 @@ void cCommandItemSetup::CreateMenuItems()
Add(new cMenuEditStrItem(tr("command"), _newCommand, 200, NULL));
// Add boolItem for confirm attribute
- Add(new cMenuEditBoolItem(tr("confirm"), _newConfirm));
+ Add(new cMenuEditBoolItem(tr("confirm"), &_newConfirm));
}
eOSState cCommandItemSetup::ProcessKey(eKeys Key)