Fix odd behavior when switching active lines with the Effect or Actor boxes focused

Originally committed to SVN as r6357.
This commit is contained in:
Thomas Goyne 2012-01-25 05:49:00 +00:00
parent f8c27feedb
commit e7307d249e

View file

@ -82,7 +82,7 @@ public:
///
/// If new_value is empty, the control will switch to placeholder mode
void ChangeValue(wxString new_value) {
if (new_value.empty()) {
if (new_value.empty() && !this->HasFocus()) {
is_placeholder = true;
new_value = placeholder;
BaseCtrl::SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT));