MyMusicModelNode *node = (MyMusicModelNode*) item.GetID();
// "MyMusic" also has no parent
- if (node == m_root)
+ if (node == m_root || node == NULL)
return wxDataViewItem(0);
return wxDataViewItem( (void*) node->GetParent() );
memcpy( dest, buffer, strlen(buffer)+1 );
return true;
}
-
+
wxDataViewItem GetNinthItem()
{
return wxDataViewItem( m_ninth );
SetMenuBar(menu_bar);
CreateStatusBar();
-
+
wxPanel *panel = new wxPanel( this, -1 );
wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL );
wxString title = m_music_model->GetTitle( event.GetItem() );
wxLogMessage(wxT("wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, Item: %s"), title );
-
+
if (m_musicCtrl->IsExpanded( event.GetItem() ))
wxLogMessage(wxT("Item: %s is expanded"), title );
}