mirror of https://github.com/odrling/Aegisub
Fix bug where the Actor box would get incorrectly set to the placeholder text
Originally committed to SVN as r6540.
This commit is contained in:
parent
b64e1f925c
commit
9f6bb17379
|
@ -97,6 +97,13 @@ public:
|
|||
if (new_value != BaseCtrl::GetValue())
|
||||
BaseCtrl::ChangeValue(new_value);
|
||||
}
|
||||
|
||||
/// Override GetValue to return empty when in placeholder mode rather than the placeholder text
|
||||
wxString GetValue() const {
|
||||
if (is_placeholder && !this->HasFocus())
|
||||
return "";
|
||||
return BaseCtrl::GetValue();
|
||||
}
|
||||
};
|
||||
|
||||
template<> inline void Placeholder<wxComboBox>::Create(wxWindow *parent, wxSize const& size, long style) {
|
||||
|
|
Loading…
Reference in New Issue