All pastes #1809397 Raw Edit

aurelien

public text v1 · immutable
#1809397 ·published 2010-02-25 10:44 UTC
rendered paste body
diff --git a/applet/nmpopup.cpp b/applet/nmpopup.cppindex b610586..4e117f2 100644--- a/applet/nmpopup.cpp+++ b/applet/nmpopup.cpp@@ -233,16 +233,13 @@ void NMPopup::addInterfaceInternal(Solid::Control::NetworkInterface* iface)                 connect(wifiItem, SIGNAL(disconnectInterface()), m_wirelessList, SLOT(deactivateConnection()));                 break;             }-            case Solid::Control::NetworkInterface::Serial:-                icon = "phone";-            case Solid::Control::NetworkInterface::Gsm:-                icon = "phone";-            case Solid::Control::NetworkInterface::Cdma:-                icon = "phone";-            case Solid::Control::NetworkInterface::Ieee8023:-                icon = "network-wired";             default:             {+                if (iface->type() == Solid::Control::NetworkInterface::Ieee8023) {+                    icon = "network-wired";+                } else {+                    icon = "phone";+                }                 // Create the interfaceitem                 InterfaceItem* wiredItem = 0;                 ifaceItem = wiredItem = new InterfaceItem(static_cast<Solid::Control::WiredNetworkInterface *>(iface), InterfaceItem::InterfaceName, this);