[BUG_FIXED] Fix crash issue while file is deleted outside (answer NO to popup dialog to not keep) and the silence update option is on.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@49 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
9b3b105ae8
commit
5b4eae3332
@ -3897,6 +3897,9 @@ void Notepad_plus::checkModifiedDocument()
|
|||||||
if (autoUpdate)
|
if (autoUpdate)
|
||||||
{
|
{
|
||||||
switchEditViewTo(currentView);
|
switchEditViewTo(currentView);
|
||||||
|
int indexMax = _pEditView->getNbDoc() - 1;
|
||||||
|
if (currentIndex > indexMax)
|
||||||
|
currentIndex = indexMax;
|
||||||
_pDocTab->activate(currentIndex);
|
_pDocTab->activate(currentIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user