mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-20 22:54:10 +00:00
Track length changed in Original Metadata after save. (#2510)
This commit is contained in:
3
NEWS.txt
3
NEWS.txt
@@ -9,7 +9,8 @@ Version 0.9.0alpha5 - 2007-03-XX
|
||||
* Better detecting of the default Windows browser, with fallback to
|
||||
Internet Explorer. (#2502)
|
||||
* Better album/track lookup. (#2521)
|
||||
* File browser stays 'hidden' after first time use (#2480)
|
||||
* File browser stays 'hidden' after first time use. (#2480)
|
||||
* Track length changed in Original Metadata after save. (#2510)
|
||||
|
||||
Version 0.9.0alpha4 - 2007-03-09
|
||||
* Bug Fixes:
|
||||
|
||||
@@ -416,6 +416,7 @@ class Tagger(QtGui.QApplication):
|
||||
|
||||
def __save_thread(self, files):
|
||||
"""Save the files."""
|
||||
# FIXME: move most of this to file.py
|
||||
saved = []
|
||||
unsaved = []
|
||||
todo = len(files)
|
||||
@@ -448,9 +449,13 @@ class Tagger(QtGui.QApplication):
|
||||
|
||||
def __save_finished(self, file, error, todo):
|
||||
"""Finalize file saving and notify views."""
|
||||
# FIXME: move this to file.py
|
||||
if error is None:
|
||||
file.state = File.NORMAL
|
||||
length, length2 = file.orig_metadata["~#length"], file.orig_metadata["~length"]
|
||||
file.orig_metadata.copy(file.metadata)
|
||||
file.orig_metadata["~#length"] = length
|
||||
file.orig_metadata["~length"] = length2
|
||||
file.metadata.changed = False
|
||||
else:
|
||||
file.state = File.ERROR
|
||||
|
||||
Reference in New Issue
Block a user