From 28395c63020a8a9323f5a0c6c80d8050a025cce5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 2 Apr 2017 08:02:45 -0400 Subject: [PATCH] TASInputDlg: Simplify event queueing calls wxQueueEvent/wxPostEvent are useful when the event is being dispatched to another separate window, but aren't really necessary when the event will be handled by the same window it's dispatched from. GetEventHandler() is unnecessary here for the same reason. It's an event intended to be handled by the dialog itself. --- Source/Core/DolphinWX/TASInputDlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/TASInputDlg.cpp b/Source/Core/DolphinWX/TASInputDlg.cpp index f6d313dd3a..4fa046653f 100644 --- a/Source/Core/DolphinWX/TASInputDlg.cpp +++ b/Source/Core/DolphinWX/TASInputDlg.cpp @@ -1159,7 +1159,7 @@ void TASInputDlg::InvalidateButton(Button* button) { auto* evt = new wxCommandEvent(INVALIDATE_BUTTON_EVENT, button->id); evt->SetClientData(button); - wxQueueEvent(this, evt); + QueueEvent(evt); return; } @@ -1173,7 +1173,7 @@ void TASInputDlg::InvalidateControl(Control* control) { auto* evt = new wxCommandEvent(INVALIDATE_CONTROL_EVENT, control->text_id); evt->SetClientData(control); - wxQueueEvent(this, evt); + QueueEvent(evt); return; } @@ -1184,7 +1184,7 @@ void TASInputDlg::InvalidateExtension() { if (!wxIsMainThread()) { - GetEventHandler()->QueueEvent(new wxThreadEvent(INVALIDATE_EXTENSION_EVENT)); + QueueEvent(new wxThreadEvent(INVALIDATE_EXTENSION_EVENT)); return; }