mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 13:24:42 +02:00
[NEW_FEATURE] Automatic Backup System (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1212 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
ac4b7ea8db
commit
026aaf94a4
@ -226,20 +226,13 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||||||
BufferID bufferToClose = notifyDocTab->getBufferByIndex(index);
|
BufferID bufferToClose = notifyDocTab->getBufferByIndex(index);
|
||||||
Buffer * buf = MainFileManager->getBufferByID(bufferToClose);
|
Buffer * buf = MainFileManager->getBufferByID(bufferToClose);
|
||||||
int iView = isFromPrimary?MAIN_VIEW:SUB_VIEW;
|
int iView = isFromPrimary?MAIN_VIEW:SUB_VIEW;
|
||||||
if (buf->isDirty()) { //activate and use fileClose() (for save and abort)
|
if (buf->isDirty())
|
||||||
|
{
|
||||||
activateBuffer(bufferToClose, iView);
|
activateBuffer(bufferToClose, iView);
|
||||||
|
}
|
||||||
fileClose(bufferToClose, iView);
|
fileClose(bufferToClose, iView);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int open = 1;
|
|
||||||
if (isFromPrimary || isFromSecondary)
|
|
||||||
open = notifyDocTab->nbItem();
|
|
||||||
doClose(bufferToClose, iView, true);
|
|
||||||
//if (open == 1 && canHideView(iView))
|
|
||||||
// hideView(iView);
|
|
||||||
break;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
case TCN_SELCHANGE:
|
case TCN_SELCHANGE:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user