From cfb7a33eb396697c2dda609504f4a596d5fd4e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lalinsk=C3=BD?= Date: Sun, 18 Mar 2007 08:12:23 +0100 Subject: [PATCH] Track length changed in Original Metadata after save. (#2510) --- NEWS.txt | 3 ++- picard/tagger.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS.txt b/NEWS.txt index a86cdedb1..ed855623c 100644 --- a/NEWS.txt +++ b/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: diff --git a/picard/tagger.py b/picard/tagger.py index 405f5e483..fba96bca1 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -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