aboutsummaryrefslogtreecommitdiff
path: root/components/TextBlock.qml
diff options
context:
space:
mode:
authorTim L <timo614@gmail.com>2017-12-08 16:28:12 -0500
committerTim L <timo614@gmail.com>2017-12-08 16:28:12 -0500
commit4d2f5864c1d2174fd8aef9abea8c1337b2e0f005 (patch)
tree736e3bcf7d5e9f856056c953dcf7c5dc5467ec4d /components/TextBlock.qml
parentd9d2050f2924322ff6f2895addcb6961a49132f9 (diff)
downloadmonzero-gui-4d2f5864c1d2174fd8aef9abea8c1337b2e0f005.tar.gz
monzero-gui-4d2f5864c1d2174fd8aef9abea8c1337b2e0f005.tar.xz
monzero-gui-4d2f5864c1d2174fd8aef9abea8c1337b2e0f005.zip
TextBlock: Fix multi select bug
Diffstat (limited to 'components/TextBlock.qml')
-rw-r--r--components/TextBlock.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/TextBlock.qml b/components/TextBlock.qml
index 7c36088a..684b6240 100644
--- a/components/TextBlock.qml
+++ b/components/TextBlock.qml
@@ -4,4 +4,9 @@ TextEdit {
wrapMode: Text.Wrap
readOnly: true
selectByMouse: true
+ // Workaround for https://bugreports.qt.io/browse/QTBUG-50587
+ onFocusChanged: {
+ if(focus === false)
+ deselect()
+ }
}