[app] Workaround for Qt crash

Qt was crashing when user was swiping over hidden cancel button.
Making button invisible helps to avoid the crash.
This commit is contained in:
Slava Monich 2015-10-30 23:59:09 +03:00
parent 516028d542
commit 53f7693ced

View file

@ -240,6 +240,7 @@ SilicaFlickable {
} }
onClicked: root.closeBook() onClicked: root.closeBook()
enabled: _loading enabled: _loading
visible: opacity > 0
opacity: enabled ? 1.0 : 0.0 opacity: enabled ? 1.0 : 0.0
Behavior on opacity { FadeAnimation { } } Behavior on opacity { FadeAnimation { } }
} }