Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2018-12-03 13:13:26 +0300
committerGhostkeeper <rubend@tutanota.com>2018-12-03 13:13:26 +0300
commitf3af5a72ad7b29f3e27197cff85c43bcff0519fd (patch)
tree55145ad9347ad648268259e17d4ff6749cb0cd88 /resources/qml/Toolbar.qml
parentdb05d7853a3567da6bb328f676c3f89dfb74bfcc (diff)
Use ListModel.count instead of rowCount
The .count property properly updates when the model is changed. Contributes to issue CURA-5876.
Diffstat (limited to 'resources/qml/Toolbar.qml')
-rw-r--r--resources/qml/Toolbar.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml
index 0240aaab26..4e00bd7248 100644
--- a/resources/qml/Toolbar.qml
+++ b/resources/qml/Toolbar.qml
@@ -65,7 +65,7 @@ Item
style: UM.Theme.styles.toolbar_button
property bool isFirstElement: toolsModel.getItem(0).id == model.id
- property bool isLastElement: toolsModel.getItem(toolsModel.rowCount() - 1).id == model.id
+ property bool isLastElement: toolsModel.getItem(toolsModel.count - 1).id == model.id
onCheckedChanged:
{