From: Jean-Baptiste Mardelle Date: Sun, 31 Jul 2011 21:20:28 +0000 (+0000) Subject: Fix locale misconfiguration that caused the document version to be 0 and started... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5e20d14c06f14d962ffd59e6c927ba968c0ea8cc;p=kdenlive 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 --- 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