Skip to content

Commit

Permalink
Merge pull request #3060 from TaizoSimpson/issue-3501
Browse files Browse the repository at this point in the history
When selecting items to modify, use configured order
  • Loading branch information
sampsyo authored Oct 25, 2018
2 parents 0a74e0f + b901eb3 commit 9556ab3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beets/ui/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,10 +1376,10 @@ def modify_items(lib, mods, dels, query, write, move, album, confirm):
# objects.
print_(u'Modifying {0} {1}s.'
.format(len(objs), u'album' if album else u'item'))
changed = set()
changed = []
for obj in objs:
if print_and_modify(obj, mods, dels):
changed.add(obj)
if print_and_modify(obj, mods, dels) and obj not in changed:
changed.append(obj)

# Still something to do?
if not changed:
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ Fixes:
* Missing album art file during an update no longer causes a fatal exception
(instead, an error is logged and the missing file path is removed from the
library). :bug:`3030`
* Fixed the ordering of items when manually selecting changes while updating
tags
Thanks to :user:`TaizoSimpson`.
:bug:`3501`

.. _python-itunes: https://github.com/ocelma/python-itunes

Expand Down

0 comments on commit 9556ab3

Please sign in to comment.