From kde-commits Mon Feb 29 23:54:59 2016 From: Kamal Mostafa Date: Mon, 29 Feb 2016 23:54:59 +0000 To: kde-commits Subject: [kdenlive] src: Do not setModified() on render if saved profile params were not changed Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=145679011030613 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 &props) { + KdenliveDoc *project =3D pCore->projectManager()->current(); + + bool modified =3D false; QMapIterator i(props); while (i.hasNext()) { i.next(); - pCore->projectManager()->current()->setDocumentProperty(i.key(), i= .value()); + if (project->getDocumentProperty(i.key()) =3D=3D i.value()) + continue; + project->setDocumentProperty(i.key(), i.value()); + modified =3D true; } - pCore->projectManager()->current()->setModified(true); + if (modified) project->setModified(); } = =20