+ } else if(KdenliveSettings::checkfirstprojectclip() && m_listView->topLevelItemCount() == 1) {
+ // this is the first clip loaded in project, check if we want to adjust project settings to the clip
+ int width = properties.value("frame_size").section('x', 0, 0).toInt();
+ int height = properties.value("frame_size").section('x', -1).toInt();
+ double fps = properties.value("fps").toDouble();
+ if(width != m_doc->width() || height != m_doc->width() || qAbs(fps - m_doc->fps()) > 0.5) {
+ QString suggestedProfile = ProfilesDialog::getPathFromProperties(width, height, fps);
+ if(!suggestedProfile.isEmpty()) {
+ QString description = ProfilesDialog::getSettingsFromFile(suggestedProfile).value("description");
+ if(KMessageBox::questionYesNo(this, i18n("Your clip does not match current project's profile.\nDo you want to adjust the profile (clip size: %1, fps: %2)?\nSuggested profile is %3", properties.value("frame_size"), fps, description)) == KMessageBox::Yes) {
+ //Change project profile
+ emit updateProfile(suggestedProfile);
+ }
+ } else KMessageBox::information(this, i18n("Your clip does not match current project's profile.\nNo existing profile found to match the clip's properties.\nClip size: %1\nFps: %2)?\n", properties.value("frame_size"), fps));
+ }