From dacbb4bc0af168cfa24e99d0b184292b1aef877b Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 12 May 2014 23:01:57 +0000 Subject: [PATCH] [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 --- PowerEditor/src/Notepad_plus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 265159d8..ef88827f 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -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; }