make SetValue return a value

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-08-29 20:09:28 +00:00
parent 6ef1b2a1c1
commit c2a92c8013

View File

@@ -299,11 +299,12 @@ public:
MyMusicModelNode *node = (MyMusicModelNode*) item.GetID();
switch (col)
{
case 0: node->m_title = variant.GetString(); break;
case 1: node->m_artist = variant.GetString(); break;
case 2: node->m_year = variant.GetLong(); break;
case 0: node->m_title = variant.GetString(); return true;
case 1: node->m_artist = variant.GetString(); return true;
case 2: node->m_year = variant.GetLong(); return true;
default: wxLogError( "MyMusicModel::SetValue: wrong column" );
}
return false;
}
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const