Update cache for access tecnology and allowed mode when they change

Desktop / KDE / KDE Workspace - Lamarque V. Souza [kde.org] - 30 May 2013 16:18 UTC

CCBUG: 319257

###

diff --git a/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp b/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp
index 65c8c39..28d4b11 100644
--- a/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp
+++ b/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp
@@ -57,6 +57,7 @@ MMModemGsmNetworkInterface::~MMModemGsmNetworkInterface()

void MMModemGsmNetworkInterface::propertiesChanged(const QString & interface, const QVariantMap & properties)
{
+ Q_D(MMModemGsmNetworkInterface);
kDebug(1441) << interface << properties.keys();

if (interface == QString("org.freedesktop.ModemManager.Modem.Gsm.Network")) {
@@ -65,11 +66,13 @@ void MMModemGsmNetworkInterface::propertiesChanged(const QString & interface, co

QVariantMap::const_iterator it = properties.find(allowedMode);
if ( it != properties.end()) {
- emit allowedModeChanged((Solid::Control::ModemInterface::AllowedMode) it->toInt());
+ d->allowedMode = (Solid::Control::ModemInterface::AllowedMode) it->toInt();
+ emit allowedModeChanged(d->allowedMode);
}
it = properties.find(accessTechnology);
if ( it != properties.end()) {
- emit accessTechnologyChanged((Solid::Control::ModemInterface::AccessTechnology) it->toInt());
+ d->accessTechnology = (Solid::Control::ModemInterface::AccessTechnology) it->toInt();
+ emit accessTechnologyChanged(d->accessTechnology);
}
}
}

9830ab4 Update cache for access tecnology and allowed mode when they change.
.../modemmanager-0.4/modemgsmnetworkinterface.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

Upstream: quickgit.kde.org


  • Share