Do not show close button if there is only one tab left.
Change-Id: I2c8cea42ca7da3149e2d8041fd8a5029ae0f8f7e
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
listModel.remove(index)
pathView.decrementCurrentIndex()
pathView.interactive = true
- if (listModel.count == 0)
- engine.rootWindow.close()
}
function get(index) {
Rectangle {
enabled: index == pathView.currentIndex && !pathView.moving && !pathView.flicking && wrapper.visibility == 1.0
opacity: enabled ? 1.0 : 0.0
- visible: wrapper.visibility == 1.0
+ visible: wrapper.visibility == 1.0 && listModel.count > 1
width: image.sourceSize.width
height: image.sourceSize.height - 2
radius: width / 2