From b71b39761ddd39db5ee1791ae13d9db80a9b6e4c Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 9 Apr 2015 17:46:13 +0200 Subject: [PATCH] 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 --- kcm/kcm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index e053aca03..7a72f749e 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -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()));