From 5d010113f0f250c259dcf2666ae6aadb7632a50b Mon Sep 17 00:00:00 2001 From: harukalover Date: Thu, 11 Jun 2009 08:13:54 +0000 Subject: [PATCH] Oops, r3045 caused crashing issues when closing the translation assistant again. Fixed the crash without having to revert the fix for the memory leaks again. Originally committed to SVN as r3047. --- aegisub/src/dialog_translation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_translation.cpp b/aegisub/src/dialog_translation.cpp index 44af2bb8d..4db9b8c35 100644 --- a/aegisub/src/dialog_translation.cpp +++ b/aegisub/src/dialog_translation.cpp @@ -114,7 +114,7 @@ DialogTranslation::DialogTranslation (wxWindow *parent,AssFile *_subs,SubtitlesG KeysInnerSizer->Add(new wxStaticText(this,-1,_("Play Audio"))); PreviewCheck = new wxCheckBox(this,PREVIEW_CHECK,_("Enable preview")); PreviewCheck->SetValue(preview); - PreviewCheck->SetEventHandler(new DialogTranslationEvent(this)); + PreviewCheck->PushEventHandler(new DialogTranslationEvent(this)); KeysSizer->Add(KeysInnerSizer,0,wxEXPAND,0); KeysSizer->Add(PreviewCheck,0,wxTOP,5);