Browse Source

[BUG_FIXED] Fix the bug that the title doesn't be updated while file status changed and updated.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@69 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
donho 17 years ago
parent
commit
80df519dbc
  1. 6
      PowerEditor/src/Notepad_plus.cpp

6
PowerEditor/src/Notepad_plus.cpp

@ -3967,7 +3967,7 @@ void Notepad_plus::checkModifiedDocument()
if (update || doReloadOrNot(docBuf.getFileName()) == IDYES)
{
pDocTabArray[j]->activate(i);
setTitleWith(pDocTabArray[j]->activate(i));
// if it's a non current view, make it as the current view
if (j == 1)
switchEditViewTo(getNonCurrentView());
@ -4000,11 +4000,11 @@ void Notepad_plus::checkModifiedDocument()
pDocTabArray[j]->activate(i);
if ((pScintillaArray[j]->getNbDoc() == 1) && (_mainWindowStatus & TWO_VIEWS_MASK))
{
pDocTabArray[j]->closeCurrentDoc();
setTitleWith(pDocTabArray[j]->closeCurrentDoc());
hideCurrentView();
}
else
pDocTabArray[j]->closeCurrentDoc();
setTitleWith(pDocTabArray[j]->closeCurrentDoc());
}
else
docBuf._dontBotherMeAnymore = true;

Loading…
Cancel
Save