Commit 4ede899c authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix tests. Instead of returning random profile, use dv_pal when no config file is found

parent 080fd512
Pipeline #102148 passed with stage
in 8 minutes and 40 seconds
......@@ -91,6 +91,9 @@ std::unique_ptr<ProfileModel> &ProfileRepository::getProfile(const QString &path
if (m_profiles.count(path) == 0) {
// qCWarning(KDENLIVE_LOG) << "//// WARNING: profile not found: " << path << ". Returning default profile instead.";
QString default_profile = KdenliveSettings::default_profile();
if (default_profile.isEmpty()) {
default_profile = QStringLiteral("dv_pal");
}
if (m_profiles.count(default_profile) == 0) {
qCWarning(KDENLIVE_LOG) << "//// WARNING: default profile not found: " << default_profile << ". Returning random profile instead.";
return (*(m_profiles.begin())).second;
......
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