Commit 841c8938 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ProjectManager: Let the 'about to quit' handler take care of saving the settings

parent 369e34c3
...@@ -776,6 +776,7 @@ MainWindow::saveSettings() ...@@ -776,6 +776,7 @@ MainWindow::saveSettings()
// Save the current layout // Save the current layout
sm->setValue( "private/MainWindowState", saveState(), SettingsManager::Vlmc ); sm->setValue( "private/MainWindowState", saveState(), SettingsManager::Vlmc );
sm->setValue( "private/CleanQuit", true, SettingsManager::Vlmc ); sm->setValue( "private/CleanQuit", true, SettingsManager::Vlmc );
sm->save();
return true; return true;
} }
return false; return false;
......
...@@ -92,10 +92,6 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false ) ...@@ -92,10 +92,6 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
ProjectManager::~ProjectManager() ProjectManager::~ProjectManager()
{ {
// Write uncommited change to the disk
QSettings s;
s.sync();
if ( m_projectFile != NULL ) if ( m_projectFile != NULL )
delete m_projectFile; delete m_projectFile;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment