summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wx/swaroop_controls.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/swaroop_controls.cc b/src/wx/swaroop_controls.cc
index dc65f1b85..73b24a02d 100644
--- a/src/wx/swaroop_controls.cc
+++ b/src/wx/swaroop_controls.cc
@@ -202,9 +202,10 @@ SwaroopControls::update_playlist_directory ()
void
SwaroopControls::spl_selection_changed ()
{
+ _current_spl_view->DeleteAllItems ();
+
long int selected = _spl_view->GetNextItem (-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
if (selected == -1) {
- _current_spl_view->DeleteAllItems ();
return;
}