diff options
author | fieldOfView <aldo@fieldofview.com> | 2016-12-13 13:32:12 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2016-12-14 14:37:51 +0300 |
commit | 002605f666e6c5756a16ec2452bc5b630f2dbae7 (patch) | |
tree | db02037c73f2254b28c3aa6f0fc263d3383e5da6 /resources | |
parent | ca20446752843b7d49a37605a901e900971af740 (diff) |
Fix selecting a printer from the current section when switching sections
Broken since this change: 42fc25ab09abd044fcd3a12e87586b4edb286460
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/AddMachineDialog.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/AddMachineDialog.qml b/resources/qml/AddMachineDialog.qml index 4b99a35458..c35008178d 100644 --- a/resources/qml/AddMachineDialog.qml +++ b/resources/qml/AddMachineDialog.qml @@ -104,8 +104,8 @@ UM.Dialog base.activeCategory = section; if (machineList.model.getItem(machineList.currentIndex).section != section) { // Find the first machine from this section - for(var i = 0; i < sortedMachineDefinitionsModel.count; i++) { - var item = sortedMachineDefinitionsModel.getItem(i); + for(var i = 0; i < machineList.model.rowCount(); i++) { + var item = machineList.model.getItem(i); if (item.section == section) { machineList.currentIndex = i; break; |