[vlmc-devel] ProjectManager: Let the 'about to quit' handler take care of saving the settings
Hugo Beauzée-Luyssen
git at videolan.org
Sun Feb 9 19:44:26 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Feb 9 20:39:48 2014 +0200| [841c8938821c8866adbc03022ee6c7b69e66b82f] | committer: Hugo Beauzée-Luyssen
ProjectManager: Let the 'about to quit' handler take care of saving the settings
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=841c8938821c8866adbc03022ee6c7b69e66b82f
---
src/Gui/MainWindow.cpp | 1 +
src/Project/ProjectManager.cpp | 4 ----
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 1916f16..e7dabe9 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -776,6 +776,7 @@ MainWindow::saveSettings()
// Save the current layout
sm->setValue( "private/MainWindowState", saveState(), SettingsManager::Vlmc );
sm->setValue( "private/CleanQuit", true, SettingsManager::Vlmc );
+ sm->save();
return true;
}
return false;
diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 23bc5d2..c3ac507 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -92,10 +92,6 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
ProjectManager::~ProjectManager()
{
- // Write uncommited change to the disk
- QSettings s;
- s.sync();
-
if ( m_projectFile != NULL )
delete m_projectFile;
}
More information about the Vlmc-devel
mailing list