Skip to content

Commit

Permalink
QML UI: Convert selection indices to integers (bug 1802)
Browse files Browse the repository at this point in the history
This fixes a bug where multi-selection episode actions don't
work in recent versions.
  • Loading branch information
thp committed Mar 27, 2013
1 parent d3f9c24 commit 795d044
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gpodder/qmlui/__init__.py
Expand Up @@ -298,6 +298,9 @@ def multiEpisodeAction(self, selected, action):
return

count = len(selected)
# JS/QML/PySide might convert the array of indices to an array of floats,
# so we need to convert these floats back to integers (bug 1802)
selected = map(int, selected)
episodes = map(lambda idx: self.root.episode_model._filtered[idx], selected)

def delete():
Expand Down

0 comments on commit 795d044

Please sign in to comment.