GUI: Make disabled EditTextWidget not allowing to edit the string

This commit is contained in:
Eugene Sandulenko 2015-11-06 05:13:05 +01:00
parent b8caa07ddb
commit 6f44d4f7e1
2 changed files with 7 additions and 1 deletions

View file

@ -62,6 +62,9 @@ void EditTextWidget::reflowLayout() {
void EditTextWidget::handleMouseDown(int x, int y, int button, int clickCount) {
if (!isEnabled())
return;
// First remove caret
if (_caretVisible)
drawCaret(true);