From 5e20d14c06f14d962ffd59e6c927ba968c0ea8cc Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 31 Jul 2011 21:20:28 +0000 Subject: [PATCH] Fix locale misconfiguration that caused the document version to be 0 and started a corrupted upgrade process: http://kdenlive.org/mantis/view.php?id=2266 svn path=/trunk/kdenlive/; revision=5819 --- src/documentvalidator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/documentvalidator.cpp b/src/documentvalidator.cpp index d3eda935..fc46f14f 100644 --- a/src/documentvalidator.cpp +++ b/src/documentvalidator.cpp @@ -48,8 +48,9 @@ bool DocumentValidator::validate(const double currentVersion) // Check if we're validating a Kdenlive project if (kdenliveDoc.isNull()) return false; - - QLocale documentLocale; + + // Previous MLT / Kdenlive versions used C locale by default + QLocale documentLocale("C"); if (mlt.hasAttribute("LC_NUMERIC")) { // Set locale for the document -- 2.39.2