git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48456
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
MyMusicModelNode *node = (MyMusicModelNode*) item.GetID();
switch (col)
{
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" );
}
default: wxLogError( "MyMusicModel::SetValue: wrong column" );
}
}
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const
}
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const