mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Fix selecting a printer from the current section when switching sections
Broken since this change: 42fc25ab09
This commit is contained in:
parent
ca20446752
commit
002605f666
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue