forked from mia/Aegisub
Fix merge error in df60c2e7a4
Although wxSTC defines SetValue, it doesn't actually work correctly.
This commit is contained in:
parent
0e7501f45c
commit
b5baacec2c
1 changed files with 2 additions and 2 deletions
|
@ -290,7 +290,7 @@ void SubsEditBox::OnCommit(int type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type & AssFile::COMMIT_DIAG_TEXT) {
|
if (type & AssFile::COMMIT_DIAG_TEXT) {
|
||||||
TextEdit->SetValue(line->Text);
|
TextEdit->SetTextTo(line->Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type & AssFile::COMMIT_DIAG_META) {
|
if (type & AssFile::COMMIT_DIAG_META) {
|
||||||
|
@ -495,7 +495,7 @@ void SubsEditBox::SetControlsState(bool state) {
|
||||||
Enable(state);
|
Enable(state);
|
||||||
if (!state) {
|
if (!state) {
|
||||||
wxEventBlocker blocker(this);
|
wxEventBlocker blocker(this);
|
||||||
TextEdit->SetValue("");
|
TextEdit->SetTextTo("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue