[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:28:20 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=bb97cc1
The following commit has been merged in the master branch:
commit bb97cc19b6ac9b5e6e0f630769cfb3be25763a4c
Author: Aleix Pol <aleixpol at kde.org>
Date: Sat Mar 14 04:28:06 2015 +0100
Don't try to initialize the devices model with an empty list
---
interfaces/devicesmodel.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp
index 8d41292..9401774 100644
--- a/interfaces/devicesmodel.cpp
+++ b/interfaces/devicesmodel.cpp
@@ -146,6 +146,10 @@ void DevicesModel::receivedDeviceList(QDBusPendingCallWatcher* watcher)
Q_ASSERT(m_deviceList.isEmpty());
const QStringList deviceIds = pendingDeviceIds.value();
+
+ if (deviceIds.isEmpty())
+ return;
+
beginInsertRows(QModelIndex(), 0, deviceIds.count()-1);
Q_FOREACH(const QString& id, deviceIds) {
m_deviceList.append(new DeviceDbusInterface(id, this));
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list