mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 18:55:57 +08:00
Fix selecting a printer from the current section when switching sections
Broken since this change: 42fc25ab09abd044fcd3a12e87586b4edb286460
This commit is contained in:
parent
ca20446752
commit
002605f666
@ -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…
x
Reference in New Issue
Block a user