Discussion:
[libnm-qt] /: Init Settings object when NetworkManager is already running.
Lamarque V. Souza
2012-08-08 11:59:39 UTC
Permalink
Git commit 45a1567686f155b5c8a8e57b8bada89f6eb3414e by Lamarque V. Souza.
Committed on 08/08/2012 at 13:47.
Pushed by lvsouza into branch 'master'.

Init Settings object when NetworkManager is already running.

CCMAIL: kde-networkmanager at kde.org

M +4 -0 settings.cpp

http://commits.kde.org/libnm-qt/45a1567686f155b5c8a8e57b8bada89f6eb3414e

diff --git a/settings.cpp b/settings.cpp
index ca54f2b..634ee7b 100644
--- a/settings.cpp
+++ b/settings.cpp
@@ -35,6 +35,10 @@ NetworkManager::Settings::SettingsPrivate::SettingsPrivate()
{
connect(NetworkManager::notifier(), SIGNAL(serviceDisappeared()), this, SLOT(daemonUnregistered()));
connect(NetworkManager::notifier(), SIGNAL(serviceAppeared()), this, SLOT(init()));
+
+ if (NetworkManager::status() != NetworkManager::Unknown) {
+ init();
+ }
}

void NetworkManager::Settings::SettingsPrivate::init()

Loading...