[vlmc-devel] commit: Session restoring: Don't assume vlmc crashed last time. ( Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Sat Apr 10 12:52:30 CEST 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Sat Apr 10 12:51:50 2010 +0200| [3b73b343e6246920cbcc712f66f5194f8a15e67d] | committer: Hugo Beauzee-Luyssen 

Session restoring: Don't assume vlmc crashed last time.

This fixes a bug at first launch.

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

 src/Gui/MainWindow.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 246059e..a4b5e94 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -574,7 +574,7 @@ bool    MainWindow::restoreSession()
     fileCreated = s.contains( "VlmcVersion" );
     if ( fileCreated == true )
     {
-        bool        cleanQuit = s.value( "CleanQuit", false ).toBool();
+        bool        cleanQuit = s.value( "CleanQuit", true ).toBool();
 
         // Restore the geometry
         restoreGeometry( s.value( "MainWindowGeometry" ).toByteArray() );



More information about the Vlmc-devel mailing list