mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
[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:
parent
7e352c4a39
commit
e08e566e19
@ -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)
|
||||
|
@ -1131,7 +1131,6 @@ void NppParameters::destroyInstance()
|
||||
|
||||
if (_pXmlUserDoc != NULL)
|
||||
{
|
||||
_pXmlUserDoc->SaveFile();
|
||||
delete _pXmlUserDoc;
|
||||
}
|
||||
if (_pXmlUserStylerDoc)
|
||||
|
@ -1446,6 +1446,10 @@ public:
|
||||
return _isLocal;
|
||||
};
|
||||
|
||||
void saveConfig_xml() {
|
||||
_pXmlUserDoc->SaveFile();
|
||||
};
|
||||
|
||||
private:
|
||||
NppParameters();
|
||||
~NppParameters();
|
||||
|
Loading…
x
Reference in New Issue
Block a user