Commit 623beb3f authored by Lamarque Souza's avatar Lamarque Souza
Browse files

Optimise the last commit.

parent e0b2b70b
......@@ -214,10 +214,10 @@ void NMDBusSettingsConnectionProvider::serviceOwnerChanged(const QString & chang
void NMDBusSettingsConnectionProvider::clearConnections()
{
Q_D(NMDBusSettingsConnectionProvider);
foreach (const QString &key, d->connections.keys()) {
foreach (RemoteConnection * conn, d->connections.values()) {
// Qt::DirectConnection makes this call synchronous.
// The connection will actually be deleted by NMDBusSettingsConnectionProvider::onRemoteConnectionRemoved().
QMetaObject::invokeMethod(d->connections.value(key), "Removed", Qt::DirectConnection);
// The connection will actually be deleted by NMDBusSettingsConnectionProvider::onRemoteConnectionRemoved().
QMetaObject::invokeMethod(conn, "Removed", Qt::DirectConnection);
}
// Just to make sure they are really clear.
d->connections.clear();
......
#ifndef PLASMA_NM_VERSION_H
#define PLASMA_NM_VERSION_H
static const char * plasmaNmVersion = "nm09-20110620";
static const char * plasmaNmVersion = "nm09-20110622";
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment