[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:28:19 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=5d1750b
The following commit has been merged in the master branch:
commit 5d1750b716003be7b2d6e1c80d10f374979e53ba
Author: Aleix Pol <aleixpol at kde.org>
Date: Sat Mar 14 02:32:38 2015 +0100
Implement TODO
When a device is added, just add the new device instead of refreshing the
whole list.
---
interfaces/devicesmodel.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp
index 1debc4a..2970c1e 100644
--- a/interfaces/devicesmodel.cpp
+++ b/interfaces/devicesmodel.cpp
@@ -67,9 +67,9 @@ DevicesModel::~DevicesModel()
void DevicesModel::deviceAdded(const QString& id)
{
- //TODO: Actually add instead of refresh
- Q_UNUSED(id);
- refreshDeviceList();
+ beginInsertRows(QModelIndex(), m_deviceList.count(), m_deviceList.count());
+ m_deviceList.append(new DeviceDbusInterface(id, this));
+ endInsertRows();
}
void DevicesModel::deviceRemoved(const QString& id)
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list