[BUG_FIXED] Fix crash bug when 'Close All But Me' is selected.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@160 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2008-04-03 18:53:07 +00:00
parent ef071a1fa9
commit 9c1b242370

View File

@ -4686,7 +4686,11 @@ bool Notepad_plus::fileCloseAllButCurrent()
for (int i = 0 ; i < curIndex ; i++)
if (!fileClose())
{
curIndex -= i;
_pDocTab->activate(curIndex);
return false;
}
if (_pEditView->getNbDoc() > 1)
{