[NEW_FEATURE] Automatic Backup System (in progress).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1212 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 11 years ago
parent ac4b7ea8db
commit 026aaf94a4

@ -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:

Loading…
Cancel
Save