mirror of https://github.com/odrling/Aegisub
Revert r2965 and r2961, although they fixed the memory leaks they also caused a crash when closing either dialog under some operating systems
Originally committed to SVN as r2990.
This commit is contained in:
parent
379f15659a
commit
dfdea0298b
|
@ -169,14 +169,6 @@ DialogKanjiTimer::DialogKanjiTimer(wxWindow *parent, SubtitlesGrid *_grid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////
|
|
||||||
// Destructor
|
|
||||||
DialogKanjiTimer::~DialogKanjiTimer() {
|
|
||||||
SourceText->PopEventHandler(true);
|
|
||||||
DestText->PopEventHandler(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
// Event table
|
// Event table
|
||||||
BEGIN_EVENT_TABLE(DialogKanjiTimer,wxDialog)
|
BEGIN_EVENT_TABLE(DialogKanjiTimer,wxDialog)
|
||||||
|
|
|
@ -91,7 +91,6 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DialogKanjiTimer(wxWindow *parent, SubtitlesGrid *grid);
|
DialogKanjiTimer(wxWindow *parent, SubtitlesGrid *grid);
|
||||||
~DialogKanjiTimer();
|
|
||||||
void OnKeyDown(wxKeyEvent &event);
|
void OnKeyDown(wxKeyEvent &event);
|
||||||
inline void OnMouseEvent(wxMouseEvent &event);
|
inline void OnMouseEvent(wxMouseEvent &event);
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
|
|
@ -161,14 +161,6 @@ DialogTranslation::DialogTranslation (wxWindow *parent,AssFile *_subs,SubtitlesG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////
|
|
||||||
// Destructor
|
|
||||||
DialogTranslation::~DialogTranslation() {
|
|
||||||
TransText->PopEventHandler(true);
|
|
||||||
PreviewCheck->PopEventHandler(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
// Jumps to line at block
|
// Jumps to line at block
|
||||||
bool DialogTranslation::JumpToLine(int n,int block) {
|
bool DialogTranslation::JumpToLine(int n,int block) {
|
||||||
|
|
|
@ -83,7 +83,6 @@ private:
|
||||||
public:
|
public:
|
||||||
bool enablePreview;
|
bool enablePreview;
|
||||||
DialogTranslation (wxWindow *parent,AssFile *subs,SubtitlesGrid *grid,int startrow=0,bool preview=false);
|
DialogTranslation (wxWindow *parent,AssFile *subs,SubtitlesGrid *grid,int startrow=0,bool preview=false);
|
||||||
~DialogTranslation();
|
|
||||||
|
|
||||||
void OnTransBoxKey(wxKeyEvent &event);
|
void OnTransBoxKey(wxKeyEvent &event);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue