From e7307d249e2247c5c719d9089db895b5c39099fe Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 25 Jan 2012 05:49:00 +0000 Subject: [PATCH] Fix odd behavior when switching active lines with the Effect or Actor boxes focused Originally committed to SVN as r6357. --- aegisub/src/placeholder_ctrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/placeholder_ctrl.h b/aegisub/src/placeholder_ctrl.h index 0b98ef6ca..dd9591588 100644 --- a/aegisub/src/placeholder_ctrl.h +++ b/aegisub/src/placeholder_ctrl.h @@ -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));