[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdenlive] src: Do not setModified() on render if saved profile params were not changed
From: Kamal Mostafa <kamal () whence ! com>
Date: 2016-02-29 23:54:59
Message-ID: E1aaXeV-0007n6-27 () scm ! kde ! org
[Download RAW message or body]
Git commit 6d58f39e63f199883b32348b5ff806149dec00ff by Kamal Mostafa.
Committed on 29/02/2016 at 23:07.
Pushed by mardelle into branch 'master'.
Do not setModified() on render if saved profile params were not changed
Just loading a project file, (re-)rendering it, then quitting will no
longer provoke the "The project has been changed. Do you want to save?"
dialog.
M +8 -2 src/mainwindow.cpp
http://commits.kde.org/kdenlive/6d58f39e63f199883b32348b5ff806149dec00ff
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e7615c2..910af9a 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2928,12 +2928,18 @@ void MainWindow::slotTranscodeClip()
void MainWindow::slotSetDocumentRenderProfile(const QMap <QString, QString> &props)
{
+ KdenliveDoc *project = pCore->projectManager()->current();
+
+ bool modified = false;
QMapIterator<QString, QString> i(props);
while (i.hasNext()) {
i.next();
- pCore->projectManager()->current()->setDocumentProperty(i.key(), i.value());
+ if (project->getDocumentProperty(i.key()) == i.value())
+ continue;
+ project->setDocumentProperty(i.key(), i.value());
+ modified = true;
}
- pCore->projectManager()->current()->setModified(true);
+ if (modified) project->setModified();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic