Commit 85bbe93d authored by Clément Stenac's avatar Clément Stenac

Don't expand WX Tree root - Patch by Alexander Gall. Thanks

parent 78128012
...@@ -538,6 +538,8 @@ void Playlist::UpdateTreeItem( wxTreeItemId item ) ...@@ -538,6 +538,8 @@ void Playlist::UpdateTreeItem( wxTreeItemId item )
while( treectrl->GetItemParent( item ).IsOk() ) while( treectrl->GetItemParent( item ).IsOk() )
{ {
item = treectrl->GetItemParent( item ); item = treectrl->GetItemParent( item );
if( ! (item == treectrl->GetRootItem() &&
treectrl->HasFlag( wxTR_HIDE_ROOT ) ) )
treectrl->Expand( item ); treectrl->Expand( item );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment