forked from mia/Aegisub
* Fixed an issue with the translation assistant not remembering the last position it was placed at before closing it
* Fixed some memory leaks in the translation assistant Originally committed to SVN as r3045.
This commit is contained in:
parent
9abcbe19b3
commit
7ac69a31b3
1 changed files with 4 additions and 2 deletions
|
@ -254,7 +254,7 @@ void DialogTranslation::UpdatePreview () {
|
||||||
///////////////
|
///////////////
|
||||||
// Event table
|
// Event table
|
||||||
BEGIN_EVENT_TABLE(DialogTranslation, wxDialog)
|
BEGIN_EVENT_TABLE(DialogTranslation, wxDialog)
|
||||||
EVT_BUTTON(wxID_CLOSE,DialogTranslation::OnClose)
|
EVT_BUTTON(wxID_CANCEL,DialogTranslation::OnClose)
|
||||||
EVT_BUTTON(BUTTON_TRANS_PLAY_VIDEO,DialogTranslation::OnPlayVideoButton)
|
EVT_BUTTON(BUTTON_TRANS_PLAY_VIDEO,DialogTranslation::OnPlayVideoButton)
|
||||||
EVT_BUTTON(BUTTON_TRANS_PLAY_AUDIO,DialogTranslation::OnPlayAudioButton)
|
EVT_BUTTON(BUTTON_TRANS_PLAY_AUDIO,DialogTranslation::OnPlayAudioButton)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
@ -419,7 +419,9 @@ void DialogTranslation::OnPlayAudioButton(wxCommandEvent &event) {
|
||||||
// Close
|
// Close
|
||||||
void DialogTranslation::OnClose (wxCommandEvent &event) {
|
void DialogTranslation::OnClose (wxCommandEvent &event) {
|
||||||
GetPosition(&lastx, &lasty);
|
GetPosition(&lastx, &lasty);
|
||||||
Close();
|
TransText->PopEventHandler(true);
|
||||||
|
PreviewCheck->PopEventHandler(true);
|
||||||
|
EndModal(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue