~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-xenial-landing-019

« back to all changes in this revision

Viewing changes to plugins/bluetooth/DevicePage.qml

  • Committer: CI Train Bot
  • Author(s): Ken VanDine
  • Date: 2016-01-21 14:47:09 UTC
  • mfrom: (1583.3.1 bluetooth_lp1535829)
  • Revision ID: ci-train-bot@canonical.com-20160121144709-j1820pbz79all2ob
Only enable the forget device button when bluetooth is enabled
 Fixes: #1535829
Approved by: Jonas G. Drange

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
                        backend.resetSelectedDevice();
195
195
                        pageStack.pop();
196
196
                    }
197
 
                    enabled: backend.selectedDevice && backend.selectedDevice.path.length > 0 && backend.selectedDevice.paired ? true : false
 
197
                    enabled: backend.powered && backend.selectedDevice && backend.selectedDevice.path.length > 0 && backend.selectedDevice.paired ? true : false
198
198
                }
199
199
            }
200
200
        }