connect(m_view.button_create, SIGNAL(clicked()), this, SLOT(slotCreateProfile()));
connect(m_view.button_save, SIGNAL(clicked()), this, SLOT(slotSaveProfile()));
connect(m_view.button_delete, SIGNAL(clicked()), this, SLOT(slotDeleteProfile()));
+ connect(m_view.button_default, SIGNAL(clicked()), this, SLOT(slotSetDefaultProfile()));
}
void ProfilesDialog::fillList(const QString selectedProfile) {
m_view.properties->setEnabled(true);
}
+void ProfilesDialog::slotSetDefaultProfile() {
+ int ix = m_view.profiles_list->currentIndex();
+ QString path = m_view.profiles_list->itemData(ix).toString();
+ if (!path.isEmpty()) KdenliveSettings::setDefault_profile(path);
+}
+
void ProfilesDialog::slotSaveProfile() {
const QString profileDesc = m_view.description->text();
int ix = m_view.profiles_list->findText(profileDesc);