[BUG_FiXED] Fix config.xml 0 length bug after Windows' update (with reboot).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@943 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2012-08-23 22:43:07 +00:00
parent 7e352c4a39
commit e08e566e19
3 changed files with 14 additions and 6 deletions

View File

@ -1448,12 +1448,17 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
scnN.nmhdr.idFrom = 0;
_pluginsManager.notify(&scnN);
saveFindHistory();
//
// saving config.xml
//
saveFindHistory(); //writeFindHistory
_lastRecentFileList.saveLRFL(); //writeRecentFileHistorySettings, writeHistory
saveScintillaParams(); //writeScintillaParams
saveGUIParams(); //writeGUIParams
saveProjectPanelsParams(); //writeProjectPanelsSettings
pNppParam->saveConfig_xml();
_lastRecentFileList.saveLRFL();
saveScintillaParams();
saveGUIParams();
saveProjectPanelsParams();
saveUserDefineLangs();
saveShortcuts();
if (nppgui._rememberLastSession && _rememberThisSession)

View File

@ -1131,7 +1131,6 @@ void NppParameters::destroyInstance()
if (_pXmlUserDoc != NULL)
{
_pXmlUserDoc->SaveFile();
delete _pXmlUserDoc;
}
if (_pXmlUserStylerDoc)

View File

@ -1446,6 +1446,10 @@ public:
return _isLocal;
};
void saveConfig_xml() {
_pXmlUserDoc->SaveFile();
};
private:
NppParameters();
~NppParameters();