Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix erronous locale conversion causing various corruption on some systems

parent 570fb3e2
......@@ -125,7 +125,9 @@ KdenliveDoc::KdenliveDoc(const QUrl &url, const QString &projectFolder, QUndoGro
j.next();
m_documentMetadata[j.key()] = j.value();
}
if (QLocale().decimalPoint() != QLocale::system().decimalPoint()) {
/*if (QLocale().decimalPoint() != QLocale::system().decimalPoint()) {
qDebug()<<"* * ** AARCH DOCUMENT PROBLEM;";
exit(1);
setlocale(LC_NUMERIC, "");
QLocale systemLocale = QLocale::system();
systemLocale.setNumberOptions(QLocale::OmitGroupSeparator);
......@@ -135,7 +137,7 @@ KdenliveDoc::KdenliveDoc(const QUrl &url, const QString &projectFolder, QUndoGro
//EffectsRepository::get()->init();
//TransitionsRepository::get()->init();
//initEffects::parseEffectFiles(pCore->getMltRepository(), QString::fromLatin1(setlocale(LC_NUMERIC, nullptr)));
}
}*/
*openBackup = false;
if (url.isValid()) {
QFile file(url.toLocalFile());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment