From af155404e017319f5196e1a461d9b95534ddb1a9 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 18 Apr 2016 21:21:57 +0200 Subject: [PATCH] reg fix, page caption not updated til focused introduced in 87905802d11d3a978f2b141c53216d43291a7d60 --- src/ce_editor.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ce_editor.pas b/src/ce_editor.pas index 88f43109..00641d88 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -201,11 +201,11 @@ end; procedure TCEEditorWidget.docFocused(aDoc: TCESynMemo); begin - if aDoc = fDoc then exit; - fDoc := aDoc; if fDoc.isNotNil and pageControl.currentPage.isNotNil and (pageControl.currentPage.Caption = '') then updatePageCaption; + if aDoc = fDoc then exit; + fDoc := aDoc; focusedEditorChanged; updateImperative; end;