Commit 38a75c7c authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix timeline preview setting never changed. Related to #56

parent d60cf772
......@@ -1616,6 +1616,13 @@ void MainWindow::slotEditProjectSettings()
if (KdenliveSettings::audiothumbnails() != w->enableAudioThumbs()) {
slotSwitchAudioThumbs();
}
if (project->getDocumentProperty(QStringLiteral("previewparameters")) != w->proxyParams() ||
project->getDocumentProperty(QStringLiteral("previewextension")) != w->proxyExtension()) {
modified = true;
project->setDocumentProperty(QStringLiteral("previewparameters"), w->previewParams());
project->setDocumentProperty(QStringLiteral("previewextension"), w->previewExtension());
slotClearPreviewRender();
}
if (project->getDocumentProperty(QStringLiteral("proxyparams")) != w->proxyParams() ||
project->getDocumentProperty(QStringLiteral("proxyextension")) != w->proxyExtension()) {
modified = true;
......
......@@ -531,6 +531,18 @@ QString ProjectSettings::proxyExtension() const
return params.section(QLatin1Char(';'), 1, 1);
}
QString ProjectSettings::previewParams() const
{
QString params = preview_profile->itemData(preview_profile->currentIndex()).toString();
return params.section(QLatin1Char(';'), 0, 0);
}
QString ProjectSettings::previewExtension() const
{
QString params = preview_profile->itemData(preview_profile->currentIndex()).toString();
return params.section(QLatin1Char(';'), 1, 1);
}
// static
QStringList ProjectSettings::extractPlaylistUrls(const QString &path)
{
......
......@@ -50,6 +50,8 @@ public:
QString externalProxyParams() const;
QString proxyParams() const;
QString proxyExtension() const;
QString previewParams() const;
QString previewExtension() const;
const QMap<QString, QString> metadata() const;
static QStringList extractPlaylistUrls(const QString &path);
static QStringList extractSlideshowUrls(const QString &url);
......
......@@ -396,6 +396,8 @@ void PreviewManager::clearPreviewRange()
}
m_tractor->unlock();
m_renderedChunks.clear();
// Reload preview params
loadParams();
m_controller->renderedChunksChanged();
}
......
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