mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-10 18:44:03 +00:00
Check if the Submit button should be active after removing a file
http://tickets.musicbrainz.org/browse/PICARD-82
This commit is contained in:
1
NEWS.txt
1
NEWS.txt
@@ -1,6 +1,7 @@
|
||||
Version 1.0.1 - unreleased
|
||||
* Always show basic tags in metadata comparison box, even if empty (title,
|
||||
artist, album, tracknumber, ~length, date) (PICARD-201)
|
||||
* Fixed AcoustID submission failure after removing files from Picard (PICARD-82)
|
||||
|
||||
Version 1.0 - 2012-06-02
|
||||
* New UI: Extended comparison of existing vs. MB metadata & tags (PICARD-43)
|
||||
|
||||
@@ -56,6 +56,7 @@ class AcoustIDManager(QtCore.QObject):
|
||||
def remove(self, file):
|
||||
if file in self._fingerprints:
|
||||
del self._fingerprints[file]
|
||||
self._check_unsubmitted()
|
||||
|
||||
def _unsubmitted(self):
|
||||
for submission in self._fingerprints.itervalues():
|
||||
@@ -71,6 +72,9 @@ class AcoustIDManager(QtCore.QObject):
|
||||
|
||||
def submit(self):
|
||||
fingerprints = list(self._unsubmitted())
|
||||
if not fingerprints:
|
||||
self._check_unsubmitted()
|
||||
return
|
||||
self.tagger.window.set_statusbar_message(N_('Submitting AcoustIDs...'))
|
||||
self.tagger.xmlws.submit_acoustid_fingerprints(fingerprints, partial(self.__fingerprint_submission_finished, fingerprints))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user