[vlmc-devel] Core: Always save vlmc settings upon exit

Hugo Beauzée-Luyssen git at videolan.org
Fri Mar 4 17:14:06 CET 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Mar  2 14:29:53 2016 +0100| [252c75d7f156f141625a97c9e8399b403a0f78d3] | committer: Hugo Beauzée-Luyssen

Core: Always save vlmc settings upon exit

> https://code.videolan.org/videolan/vlmc/commit/252c75d7f156f141625a97c9e8399b403a0f78d3
---

 src/Gui/MainWindow.cpp | 1 -
 src/Main/Core.cpp      | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 0277234..08c3030 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -745,7 +745,6 @@ MainWindow::saveSettings()
     // Save the current layout
     settings->setValue( "private/MainWindowState", saveState() );
     settings->setValue( "private/CleanQuit", true );
-    settings->save();
     Core::getInstance()->currentProject()->save();
     return true;
 }
diff --git a/src/Main/Core.cpp b/src/Main/Core.cpp
index 8d04876..b5fce99 100644
--- a/src/Main/Core.cpp
+++ b/src/Main/Core.cpp
@@ -54,6 +54,7 @@ Core::Core()
 
 Core::~Core()
 {
+    m_settings->save();
     delete m_currentProject;
     delete m_workspace;
     delete m_automaticBackup;



More information about the Vlmc-devel mailing list