Track length changed in Original Metadata after save. (#2510)

This commit is contained in:
Lukáš Lalinský
2007-03-18 08:12:23 +01:00
parent d8bf3c2800
commit cfb7a33eb3
2 changed files with 7 additions and 1 deletions

View File

@@ -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:

View File

@@ -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