Commit 9b882121 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Show proxy and metadata tabs on new project creation and correctly set their values to the document

parent 7730d39b
Pipeline #205280 failed with stage
in 2 minutes and 23 seconds
......@@ -267,8 +267,8 @@ ProjectSettings::ProjectSettings(KdenliveDoc *doc, QMap<QString, QString> metada
slotUpdateFiles();
connect(delete_unused, &QAbstractButton::clicked, this, &ProjectSettings::slotDeleteUnused);
} else {
tabWidget->removeTab(2);
tabWidget->removeTab(1);
// Hide project files tab since its an empty new project
tabWidget->removeTab(3);
}
connect(project_folder, &KUrlRequester::textChanged, this, &ProjectSettings::slotUpdateButton);
connect(button_export, &QAbstractButton::clicked, this, &ProjectSettings::slotExportToText);
......
......@@ -212,6 +212,7 @@ void ProjectManager::newFile(QString profileName, bool showProjectSettings)
documentProperties.insert(QStringLiteral("proxyminsize"), QString::number(w->proxyMinSize()));
documentProperties.insert(QStringLiteral("proxyparams"), w->proxyParams());
documentProperties.insert(QStringLiteral("proxyextension"), w->proxyExtension());
documentProperties.insert(QStringLiteral("proxyresize"), w->proxyResize());
documentProperties.insert(QStringLiteral("audioChannels"), QString::number(w->audioChannels()));
documentProperties.insert(QStringLiteral("generateimageproxy"), QString::number(int(w->generateImageProxy())));
QString preview = w->selectedPreview();
......@@ -226,7 +227,12 @@ void ProjectManager::newFile(QString profileName, bool showProjectSettings)
}
documentProperties.insert(QStringLiteral("storagefolder"), projectFolder + documentId);
}
if (w->useExternalProxy()) {
documentProperties.insert(QStringLiteral("enableexternalproxy"), QStringLiteral("1"));
documentProperties.insert(QStringLiteral("externalproxyparams"), w->externalProxyParams());
}
sameProjectFolder = w->docFolderAsStorageFolder();
// Metadata
documentMetadata = w->metadata();
delete w;
}
......
Supports Markdown
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