[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:37 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=6cc1946
The following commit has been merged in the master branch:
commit 6cc194644340ad7037ca86f07e30b337ccc78326
Author: David Kahles <david.kahles96 at gmail.com>
Date: Fri Apr 1 15:18:14 2016 +0200
Allow paired and not reachable devices in the model
The server supports this device state (e.g. if a device was saved as paired,
but isn't reachable), so let's expose it to the model.
The display filter should take care of excluding such devices if
nessecarry.
To make sure that such devices aren't shown in the kcm (we can't do anything
useful with them at the moment), set the display filter accordingly.
REVIEW: 127553
---
interfaces/devicesmodel.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp
index 7b0fdbb..af192c8 100644
--- a/interfaces/devicesmodel.cpp
+++ b/interfaces/devicesmodel.cpp
@@ -262,10 +262,10 @@ QVariant DevicesModel::data(const QModelIndex& index, int role) const
}
case StatusModelRole: {
int status = StatusFilterFlag::NoFilter;
- if (device->isReachable()) {
+ if (device->isReachable())
status |= StatusFilterFlag::Reachable;
- if (device->isPaired()) status |= StatusFilterFlag::Paired;
- }
+ if (device->isPaired())
+ status |= StatusFilterFlag::Paired;
return status;
}
case IconNameRole:
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list