Fix deleting timeline preview files from project settings

parent a39b2788
......@@ -1530,13 +1530,12 @@ void MainWindow::slotEditProjectSettings()
QPointer<ProjectSettings> w = new ProjectSettings(project, project->metadata(), pCore->projectManager()->currentTimeline()->projectView()->extractTransitionsLumas(), p.x(), p.y(), project->projectFolder().path(), true, !project->isModified(), this);
connect(w, SIGNAL(disableProxies()), this, SLOT(slotDisableProxies()));
connect(w, SIGNAL(disablePreview()), project, SLOT(invalidateRange()));
connect(w, SIGNAL(refreshProfiles()), this, SLOT(slotRefreshProfiles()));
if (w->exec() == QDialog::Accepted) {
QString profile = w->selectedProfile();
project->setProjectFolder(w->selectedFolder());
if (w->deletedPreviews)
pCore->projectManager()->currentTimeline()->invalidateRange(ItemInfo());
pCore->projectManager()->currentTimeline()->updatePreviewSettings(w->selectedPreview());
bool modified = false;
if (m_recMonitor) {
......
......@@ -47,7 +47,6 @@
ProjectSettings::ProjectSettings(KdenliveDoc *doc, QMap <QString, QString> metadata, const QStringList &lumas, int videotracks, int audiotracks, const QString &projectPath, bool readOnlyTracks, bool savedProject, QWidget * parent) :
QDialog(parent)
,deletedPreviews(false)
,m_savedProject(savedProject)
,m_lumas(lumas)
{
......
......@@ -34,7 +34,6 @@ class ProjectSettings : public QDialog, public Ui::ProjectSettings_UI
public:
ProjectSettings(KdenliveDoc *doc, QMap <QString, QString> metadata, const QStringList &lumas, int videotracks, int audiotracks, const QString& projectPath, bool readOnlyTracks, bool unsavedProject, QWidget * parent = 0);
bool deletedPreviews;
QString selectedProfile() const;
QUrl selectedFolder() const;
QPoint tracks() const;
......@@ -99,6 +98,7 @@ private:
signals:
/** @brief User deleted proxies, so disable them in project. */
void disableProxies();
void disablePreview();
void refreshProfiles();
};
......
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