From f558747a2d30801b8b2a8ccbcfc9abc1d7f9373f Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 24 Feb 2014 22:38:56 +0000 Subject: [PATCH] [ENHANCEMENT] Enhance Function list panel: reload on saving. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1190 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/NppIO.cpp | 6 ++++++ .../src/WinControls/FunctionList/functionListPanel.h | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 8a0a06722..b8cc6a65d 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -31,6 +31,7 @@ #include "FileDialog.h" #include "EncodingMapper.h" #include "VerticalFileSwitcher.h" +#include "functionListPanel.h" #include @@ -313,6 +314,11 @@ bool Notepad_plus::doSave(BufferID id, const TCHAR * filename, bool isCopy) ::MessageBox(_pPublicInterface->getHSelf(), error_msg.c_str(), TEXT("Save failed"), MB_OK); } } + + if (_pFuncList && (!_pFuncList->isClosed()) && _pFuncList->isVisible()) + { + _pFuncList->reload(); + } return res; } diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.h b/PowerEditor/src/WinControls/FunctionList/functionListPanel.h index 473c6f577..6988520bd 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.h +++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.h @@ -113,7 +113,6 @@ public: void removeAllEntries(); void removeEntry(); void modifyEntry(); - void update(); void searchFuncAndSwitchView(); protected: