summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-30 01:29:09 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-30 01:29:09 +0000
commiteaa4e297c91fbc4ae32e5b6b04c1800d42ceed71 (patch)
treec0e3f993f219730a859deb2c339c9162633d77f5 /src
parent1d08c7b46a8d8ef99e4fbd14225dcdf9f6cb4667 (diff)
swaroop: fix load of more than one playlist.v2.13.79
Diffstat (limited to 'src')
-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;
}