[vlmc-devel] Library: Don't mark the project as dirty after it has been loaded.

Hugo Beauzée-Luyssen git at videolan.org
Wed Sep 5 17:43:03 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Sep  4 23:43:40 2012 +0300| [fb0faf03ff30d4b4a26f2602acd7c5a4de91d780] | committer: Hugo Beauzée-Luyssen

Library: Don't mark the project as dirty after it has been loaded.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=fb0faf03ff30d4b4a26f2602acd7c5a4de91d780
---

 src/Library/Library.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index e625ef8..89041ad 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -81,6 +81,10 @@ Library::loadProject( const QDomElement& doc )
         return ;
     load( clips, this );
     mediaLoaded( NULL );
+    //Mark the state as clean, as we just loaded a project. Otherwise, a media
+    //loading triggers a setCleanState(false) which makes sense when modifying
+    //project, but not here.
+    setCleanState(true);
 }
 
 void



More information about the Vlmc-devel mailing list