+ if (m_profile.path.isEmpty()) {
+ // Profile not found, use embedded profile
+ QDomElement profileInfo = m_document.elementsByTagName("profileinfo").at(0).toElement();
+ if (profileInfo.isNull()) {
+ KMessageBox::information(kapp->activeWindow(), i18n("Project profile was not found, using default profile."), i18n("Missing Profile"));
+ m_profile = ProfilesDialog::getVideoProfile(KdenliveSettings::default_profile());
+ } else {
+ KMessageBox::information(kapp->activeWindow(), i18n("Project profile was not found, it will be added to your system now."), i18n("Missing Profile"));
+ m_profile.description = profileInfo.attribute("description");
+ m_profile.frame_rate_num = profileInfo.attribute("frame_rate_num").toInt();
+ m_profile.frame_rate_den = profileInfo.attribute("frame_rate_den").toInt();
+ m_profile.width = profileInfo.attribute("width").toInt();
+ m_profile.height = profileInfo.attribute("height").toInt();
+ m_profile.progressive = profileInfo.attribute("progressive").toInt();
+ m_profile.sample_aspect_num = profileInfo.attribute("sample_aspect_num").toInt();
+ m_profile.sample_aspect_den = profileInfo.attribute("sample_aspect_den").toInt();
+ m_profile.display_aspect_num = profileInfo.attribute("display_aspect_num").toInt();
+ m_profile.display_aspect_den = profileInfo.attribute("display_aspect_den").toInt();
+ ProfilesDialog::saveProfile(m_profile);
+ setModified(true);
+ }
+ }
+