swaroop: fix load of more than one playlist. v2.13.79
authorCarl Hetherington <cth@carlh.net>
Fri, 30 Nov 2018 01:29:09 +0000 (01:29 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 30 Nov 2018 01:29:09 +0000 (01:29 +0000)
src/wx/swaroop_controls.cc

index dc65f1b..73b24a0 100644 (file)
@@ -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;
        }