Commit 76f839cb authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

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();
if (w->deletedPreviews)
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) :
......@@ -34,7 +34,6 @@ class ProjectSettings : public QDialog, public Ui::ProjectSettings_UI
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:
/** @brief User deleted proxies, so disable them in project. */
void disableProxies();
void disablePreview();
void refreshProfiles();
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