From 624c9066d85c4da900cf440ca6066f86ef0b044d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Apr 2018 18:19:47 +0300 Subject: EV_PROTO_ONOPTIONS removed and replaced with the call of CallObjectEventHook(pa->ppro, ME_OPT_INITIALIZE) this eliminates the possibility of making a mistake in hand-written code also fixes #1280 (Tox: "Confugure" menu item is broken) --- src/mir_app/src/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp index b370c80072..7c36c04fb3 100644 --- a/src/mir_app/src/options.cpp +++ b/src/mir_app/src/options.cpp @@ -1144,7 +1144,7 @@ void OpenAccountOptions(PROTOACCOUNT *pa) return; OptionsPageList arPages(1); - pa->ppro->OnEvent(EV_PROTO_ONOPTIONS, (WPARAM)&arPages, 0); + CallObjectEventHook(pa->ppro, hOptionsInitEvent, (WPARAM)&arPages, 0); if (arPages.getCount() == 0) return; -- cgit v1.2.3