From 80df519dbc41771a5d11f905c7f17cef4980cfd5 Mon Sep 17 00:00:00 2001 From: donho Date: Tue, 6 Nov 2007 18:52:45 +0000 Subject: [PATCH] [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 --- PowerEditor/src/Notepad_plus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 9b25eee22..a19575b72 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/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;