From 026aaf94a4f2012ad033e976ee33a4b93e0abdb5 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 3 Apr 2014 00:18:47 +0000 Subject: [PATCH] [NEW_FEATURE] Automatic Backup System (in progress). git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1212 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/NppNotification.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index e5d1d2de6..7858a12a2 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -226,19 +226,12 @@ BOOL Notepad_plus::notify(SCNotification *notification) BufferID bufferToClose = notifyDocTab->getBufferByIndex(index); Buffer * buf = MainFileManager->getBufferByID(bufferToClose); int iView = isFromPrimary?MAIN_VIEW:SUB_VIEW; - if (buf->isDirty()) { //activate and use fileClose() (for save and abort) + if (buf->isDirty()) + { activateBuffer(bufferToClose, iView); - fileClose(bufferToClose, iView); - break; } - int open = 1; - if (isFromPrimary || isFromSecondary) - open = notifyDocTab->nbItem(); - doClose(bufferToClose, iView, true); - //if (open == 1 && canHideView(iView)) - // hideView(iView); + fileClose(bufferToClose, iView); break; - } case TCN_SELCHANGE: