Commit 0547233f authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Merge branch 'vivekkde/kdenlive-master'

parents eeada055 70223d66
Pipeline #37858 failed with stage
in 60 minutes and 50 seconds
......@@ -112,8 +112,14 @@ void EffectListWidget::editCustomAsset(const QModelIndex &index)
{
QDialog dialog(this);
QFormLayout form(&dialog);
QLineEdit *effectName = new QLineEdit(getName(index), &dialog);
QTextEdit *descriptionBox = new QTextEdit(getDescription(true, index), &dialog);
QString currentName = getName(index);
QString desc = getDescription(true, index);
// Strip effect Name
if (desc.contains(QLatin1Char('('))) {
desc = desc.section(QLatin1Char('('), 0, -2).simplified();
}
QLineEdit *effectName = new QLineEdit(currentName, &dialog);
QTextEdit *descriptionBox = new QTextEdit(desc, &dialog);
form.addRow(i18n("Name : "), effectName);
form.addRow(i18n("Comments : "), descriptionBox);
QDialogButtonBox buttonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, &dialog);
......@@ -126,7 +132,7 @@ void EffectListWidget::editCustomAsset(const QModelIndex &index)
if (name.trimmed().isEmpty() && enteredDescription.trimmed().isEmpty()) {
return;
}
m_model->editCustomAsset(name, enteredDescription, m_proxyModel->mapToSource(index));
m_model->editCustomAsset(name, enteredDescription, m_proxyModel->mapToSource(index));
}
}
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