mirror of https://github.com/odrling/Aegisub
Hook into validator data transfer for the style editor, to make sure the preview box is updated when data are transferred into the window. This fixes #1356. (For whatever reason, the preview was never told to update after the data were transferred before.)
Originally committed to SVN as r5990.
This commit is contained in:
parent
0777d3b136
commit
85e1f6ac34
|
@ -690,6 +690,19 @@ void DialogStyleEditor::LoadPosition() {
|
|||
CentreOnParent();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Make sure the preview is updated whenever data are transferred into the window by validators
|
||||
bool DialogStyleEditor::TransferDataToWindow()
|
||||
{
|
||||
bool res = wxDialog::TransferDataToWindow();
|
||||
if (res && SubsPreview) {
|
||||
UpdateWorkStyle();
|
||||
SubsPreview->SetStyle(work);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////
|
||||
// Static class data saving position
|
||||
|
|
|
@ -138,6 +138,8 @@ public:
|
|||
void Apply (bool apply,bool close);
|
||||
void OnSetColor (int n);
|
||||
|
||||
virtual bool TransferDataToWindow();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue