Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Fix two crashes after selecting multiple episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanouta committed Apr 2, 2020
1 parent 78fcb37 commit 94e551f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Widgets/PodcastView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ namespace Vocal {
private void on_row_selected () {

GLib.List<weak ListBoxRow> rows = listbox.get_selected_rows ();
if (rows.length () < 1) {
if (rows.length () != 1) {
return;
}

Expand Down Expand Up @@ -721,7 +721,9 @@ namespace Vocal {

private void reset_episode_list () {
foreach (var item in listbox.get_children ()) {
listbox.remove (item);
ListBoxRow row = (ListBoxRow) item;
row.selectable = false;
listbox.remove (row);
}

boxes.clear ();
Expand Down

0 comments on commit 94e551f

Please sign in to comment.