[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:
parent
ef071a1fa9
commit
9c1b242370
|
@ -4686,7 +4686,11 @@ bool Notepad_plus::fileCloseAllButCurrent()
|
||||||
|
|
||||||
for (int i = 0 ; i < curIndex ; i++)
|
for (int i = 0 ; i < curIndex ; i++)
|
||||||
if (!fileClose())
|
if (!fileClose())
|
||||||
|
{
|
||||||
|
curIndex -= i;
|
||||||
|
_pDocTab->activate(curIndex);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (_pEditView->getNbDoc() > 1)
|
if (_pEditView->getNbDoc() > 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue