summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-28 23:45:25 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-28 23:45:25 +0200
commitfbd7ee1634502c696d72d5418f88ba819f8e412b (patch)
tree0665315d23633eaa7d46ba5e20facf3d92d27a91 /unity-shared
parent41aa0a4967197d0a47696f314fb5e17c16eb0bb7 (diff)
TextInput: fix logic in toggling the activator visibility on spinner showing
(bzr r3844.10.22)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/TextInput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unity-shared/TextInput.cpp b/unity-shared/TextInput.cpp
index 2f2ea42af..a3cfda4f0 100644
--- a/unity-shared/TextInput.cpp
+++ b/unity-shared/TextInput.cpp
@@ -234,7 +234,7 @@ void TextInput::CheckIfCapsLockOn()
void TextInput::SetSpinnerVisible(bool visible)
{
spinner_->SetVisible(visible);
- activator_->SetVisible(visible || show_activator());
+ activator_->SetVisible(!visible && show_activator());
}
void TextInput::SetSpinnerState(SpinnerState spinner_state)