diff options
author | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-26 21:01:56 +0000 |
---|---|---|
committer | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-26 21:01:56 +0000 |
commit | ae61e4ab78f1de49211d17e4a509a1c24443fc2e (patch) | |
tree | bb2eac52cdeba787f5816ad905aa0b2ee442c43b /muggle-plugin/vdr_menu.c | |
parent | 3e949c7385756836dfb7f0bce4d95dc37a5697eb (diff) | |
download | vdr-plugin-muggle-ae61e4ab78f1de49211d17e4a509a1c24443fc2e.tar.gz vdr-plugin-muggle-ae61e4ab78f1de49211d17e4a509a1c24443fc2e.tar.bz2 |
Removed compiler errors
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@251 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/vdr_menu.c')
-rw-r--r-- | muggle-plugin/vdr_menu.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/muggle-plugin/vdr_menu.c b/muggle-plugin/vdr_menu.c index 3ad6d97..fbc7794 100644 --- a/muggle-plugin/vdr_menu.c +++ b/muggle-plugin/vdr_menu.c @@ -14,7 +14,10 @@ #include <string> #include <vector> +// #include <cstring> + #include <mysql/mysql.h> + #include <menuitems.h> #include <tools.h> #include <config.h> @@ -73,9 +76,9 @@ mgMainMenu::mgMainMenu(mgMedia *media, mgSelectionTreeNode *root, DisplayTree( m_root ); - strncpy( m_listname, playlist->getListname(), 31 ); - m_listname[31] = "\0"; - m_editing_listname + strncpy( m_listname, playlist->getListname().c_str(), 31 ); + m_listname[31] = '\0'; + m_editing_listname = false; } mgSelectionTreeNode *mgMainMenu::CurrentNode() @@ -395,10 +398,11 @@ eOSState mgMainMenu::ProcessKey(eKeys key) } else { // editing playlist name - s_editing_listname = !s_editing_listname; - if( s_editing_listname = false ) + m_editing_listname = !m_editing_listname; + if( m_editing_listname = false ) { // we just changed from true to false so editing was terminated - m_playlist->setListname( s_listname ); + RenamePlaylist( std::string( m_listname ) ); + } } } break; @@ -700,7 +704,7 @@ void mgMainMenu::DisplayPlaylistSubmenu() SetTitle( "Muggle - Playlist View Commands" ); // Add items - Add( new cMenuEditStrItem( tr("Playlist name"), s_listname, 32, allowed ) ); + Add( new cMenuEditStrItem( tr("Playlist name"), m_listname, 31, allowed ) ); Add( new cOsdItem( tr("Load playlist" ) ) ); Add( new cOsdItem( tr("Save playlist" ) ) ); Add( new cOsdItem( tr("Clear playlist" ) ) ); |