SMS App: Note that there's no device available on the combo

Fixes T8342
This commit is contained in:
Aleix Pol 2018-04-08 02:40:40 +02:00
parent cfc51e0814
commit ea69141d2e

View file

@ -83,6 +83,8 @@ Kirigami.ScrollablePage
footer: ComboBox {
id: devicesCombo
readonly property QtObject device: currentIndex>0 ? model.data(model.index(currentIndex, 0), DevicesModel.DeviceRole) : null
enabled: count > 0
displayText: enabled ? undefined : i18n("No devices available")
model: DevicesSortProxyModel {
//TODO: make it possible to sort only if they can do sms
sourceModel: DevicesModel { displayFilter: DevicesModel.Paired | DevicesModel.Reachable }