From e205f9d51b73afa4d2f139af44941c3bb64a698c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 31 Jan 2012 00:43:40 +0000 Subject: [PATCH] Make the 'Add to dictionary' button in the spellchecker dialog actually do something. Closes #1441. Originally committed to SVN as r6394. --- aegisub/src/dialog_spellchecker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/src/dialog_spellchecker.cpp b/aegisub/src/dialog_spellchecker.cpp index cd26516c9..1e9d284a6 100644 --- a/aegisub/src/dialog_spellchecker.cpp +++ b/aegisub/src/dialog_spellchecker.cpp @@ -24,6 +24,7 @@ #include "config.h" #ifndef AGI_PRE +#include #include #include #include @@ -141,7 +142,7 @@ DialogSpellChecker::DialogSpellChecker(agi::Context *context) button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnIgnoreAll, this); actions_sizer->Add(add_button = new wxButton(this, -1, _("Add to &dictionary")), button_flags); - button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnAdd, this); + add_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnAdd, this); actions_sizer->Add(new HelpButton(this, "Spell Checker"), button_flags);