Fix playlist view refresh bug

This commit is contained in:
Sumner Evans
2019-06-29 01:32:41 -06:00
parent 7ca4d4aa6e
commit e81e22be95

View File

@@ -290,9 +290,9 @@ class PlaylistsPanel(Gtk.Paned):
dialog.destroy() dialog.destroy()
def on_view_refresh_click(self, button): def on_view_refresh_click(self, button):
playlist_id = self.playlist_map[ playlist = self.playlist_map[
self.playlist_list.get_selected_row().get_index()] self.playlist_list.get_selected_row().get_index()]
self.update_playlist_view(playlist_id, force=True) self.update_playlist_view(playlist.id, force=True)
def on_song_double_click(self, treeview, idx, column): def on_song_double_click(self, treeview, idx, column):
# The song ID is in the last column of the model. # The song ID is in the last column of the model.