Commit af0edc50 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix warnings

Don't call a null object
Don't set to undefined since this just gets us:
DeviceItem.qml:32:5: Unable to assign [undefined] to bool
parent 6042f08f
......@@ -29,7 +29,7 @@ PlasmaExtras.ExpandableListItem {
title: model.DeviceFullName
subtitle: infoText()
isBusy: connecting
isDefault: model.isDefault
isDefault: model && model.isDefault
defaultActionButtonAction: Action {
icon.name: model.Connected ? "network-disconnect" : "network-connect"
text: model.Connected ? i18n("Disconnect") : i18n("Connect")
......
......@@ -108,7 +108,7 @@ PlasmaComponents3.Page {
} else if (btManager.devices.length === 0) {
return addBluetoothDeviceAction
}
return undefined
return null
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment