Make ::SetValue return a bool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8d2b3fc374
commit
f5f688eddd
@ -240,11 +240,12 @@ public:
|
|||||||
MyMusicModelNode *node = (MyMusicModelNode*) item.GetID();
|
MyMusicModelNode *node = (MyMusicModelNode*) item.GetID();
|
||||||
switch (col)
|
switch (col)
|
||||||
{
|
{
|
||||||
case 0: node->m_title = variant.GetString(); break;
|
case 0: node->m_title = variant.GetString(); return true;
|
||||||
case 1: node->m_artist = variant.GetString(); break;
|
case 1: node->m_artist = variant.GetString(); return true;
|
||||||
case 2: node->m_year = variant.GetString(); break;
|
case 2: node->m_year = variant.GetString(); return true;
|
||||||
default: wxLogError( "MyMusicModel::SetValue: wrong column" );
|
default: wxLogError( "MyMusicModel::SetValue: wrong column" );
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const
|
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const
|
||||||
|
Loading…
Reference in New Issue
Block a user