From 086b597f3e1d643a14252d9ee63d0efeb552620b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Tue, 15 Jan 2013 11:42:05 +0100 Subject: [PATCH] PlayWordMediator: consider the empty rack as valid --- qt/play_word_mediator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/play_word_mediator.cpp b/qt/play_word_mediator.cpp index 1eed354..8d76db3 100644 --- a/qt/play_word_mediator.cpp +++ b/qt/play_word_mediator.cpp @@ -177,7 +177,7 @@ void PlayWordMediator::onCoordChanged() void PlayWordMediator::onWordChanged() { - bool acceptableInput = m_lineEditPlay.hasAcceptableInput(); + bool acceptableInput = m_lineEditPlay.hasAcceptableInput() || m_lineEditPlay.text() == ""; m_lineEditPlay.setPalette(acceptableInput ? blackPalette : redPalette); if (acceptableInput)