summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-12-30 14:52:22 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-12-30 14:52:22 +0100
commitca800c061d843a779b4bf2366017af66d1beb75f (patch)
tree16a2033f00818dd82c80bd9a38f5967d586121b5
parentde063e3e84da8a8077eba18720ef4754a99f9afd (diff)
downloadtdenetworkmanager-ca800c06.tar.gz
tdenetworkmanager-ca800c06.zip
Remove notifications for the auxiliary devices
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--tdenetworkmanager/src/tdenetman-tray.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tdenetworkmanager/src/tdenetman-tray.cpp b/tdenetworkmanager/src/tdenetman-tray.cpp
index 533fa7e..12a9b63 100644
--- a/tdenetworkmanager/src/tdenetman-tray.cpp
+++ b/tdenetworkmanager/src/tdenetman-tray.cpp
@@ -905,13 +905,17 @@ void Tray::updateActiveConnection(TDENetworkConnectionStatus::TDENetworkConnecti
void Tray::slotDeviceAddedNotify(TDENetworkDevice* dev)
{
kdDebug() << "Tray::slotDeviceAddedNotify" << endl;
- KNotifyClient::event( winId(), "tdenm-nm-device-added", i18n("New network device %1 found").arg(dev->deviceNode()) );
+ if( dev->deviceNode() ) {
+ KNotifyClient::event( winId(), "tdenm-nm-device-added", i18n("New network device %1 found").arg(dev->deviceNode()) );
+ }
}
void Tray::slotDeviceRemovedNotify(TDENetworkDevice* dev)
{
kdDebug() << "Tray::slotDeviceRemovedNotify" << endl;
- KNotifyClient::event( winId(), "tdenm-nm-device-removed", i18n("Network device %1 removed").arg(dev->deviceNode()) );
+ if( dev->deviceNode() ) {
+ KNotifyClient::event( winId(), "tdenm-nm-device-removed", i18n("Network device %1 removed").arg(dev->deviceNode()) );
+ }
}
void Tray::slotStateChangedNotify(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags newState, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags prevState)