KCM: Use currentChanged signal instead of clicked in deviceList
Using currentChanged signal it is now possible to select devices with keyboard. It also no longer refreshes plugin info when clicking on already selected device. REVIEW:123308
This commit is contained in:
parent
c8eb5e3074
commit
b71b39761d
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ KdeConnectKcm::KdeConnectKcm(QWidget *parent, const QVariantList&)
|
|||
|
||||
connect(devicesModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(resetSelection()));
|
||||
connect(kcmUi->deviceList, SIGNAL(pressed(QModelIndex)),
|
||||
connect(kcmUi->deviceList->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(deviceSelected(QModelIndex)));
|
||||
connect(kcmUi->pair_button, SIGNAL(clicked()),
|
||||
this, SLOT(requestPair()));
|
||||
|
|
Loading…
Reference in a new issue