mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix a couple of qml casting errors
This commit is contained in:
parent
a9ed562a58
commit
0c8d0a11a9
3 changed files with 6 additions and 4 deletions
|
@ -16,6 +16,7 @@ UM.Dialog
|
|||
{
|
||||
id: base
|
||||
title: catalog.i18nc("@title:window", "Add Printer")
|
||||
property bool firstRun: false
|
||||
property string preferredCategory: "Ultimaker"
|
||||
property string activeCategory: preferredCategory
|
||||
|
||||
|
@ -32,7 +33,7 @@ UM.Dialog
|
|||
signal machineAdded(string id)
|
||||
function getMachineName()
|
||||
{
|
||||
var name = machineList.model.get(machineList.currentIndex).name
|
||||
var name = machineList.model.get(machineList.currentIndex) != undefined ? machineList.model.get(machineList.currentIndex).name : ""
|
||||
return name
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue