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 dc65f1b85f7635f14672106d94ec70cce87ccd11..73b24a02d769e9aa0c67c12c70e5bd896ba4be3b 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;
        }