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: