[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:26:42 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=af02ca7
The following commit has been merged in the master branch:
commit af02ca7c7471ba55c8102958f650ea57eb9cedeb
Author: Albert Vaca <albertvaka at gmail.com>
Date: Thu Aug 8 19:09:42 2013 +0200
Check when empty to avoid a crash
---
kcm/devicesmodel.cpp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/kcm/devicesmodel.cpp b/kcm/devicesmodel.cpp
index 247f973..3ae3509 100644
--- a/kcm/devicesmodel.cpp
+++ b/kcm/devicesmodel.cpp
@@ -62,9 +62,11 @@ void DevicesModel::deviceAdded(const QString& id)
//Full refresh
Q_UNUSED(id);
- beginRemoveRows(QModelIndex(), 0, m_deviceList.count() - 1);
- m_deviceList.clear();
- endRemoveRows();
+ if (m_deviceList.count() > 0) {
+ beginRemoveRows(QModelIndex(), 0, m_deviceList.count() - 1);
+ m_deviceList.clear();
+ endRemoveRows();
+ }
QList<QString> deviceIds = m_dbusInterface->devices();
Q_FOREACH(const QString& id, deviceIds) {
beginInsertRows(QModelIndex(), rowCount(), rowCount() + 1);
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list