]> git.sesse.net Git - kdenlive/commitdiff
Fix locale misconfiguration that caused the document version to be 0 and started...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 31 Jul 2011 21:20:28 +0000 (21:20 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 31 Jul 2011 21:20:28 +0000 (21:20 +0000)
http://kdenlive.org/mantis/view.php?id=2266

svn path=/trunk/kdenlive/; revision=5819

src/documentvalidator.cpp

index d3eda935a27904f67047935f60c1a42b44800c1b..fc46f14fa37b101afaef192c748c75304f147c60 100644 (file)
@@ -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