[BUG_FIXED] Fix bug that backup is not performed while view is switched from one to another.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1237 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2014-05-12 23:01:57 +00:00
parent e3208e4ce2
commit dacbb4bc0a

View File

@ -3057,6 +3057,9 @@ int Notepad_plus::switchEditViewTo(int gid)
_pDocMap->initWrapMap();
}
// Before switching off, synchronize backup file
MainFileManager->backupCurrentBuffer();
notifyBufferActivated(_pEditView->getCurrentBufferID(), currentView());
return oldView;
}