Fix wireless icon if none on theme.
authorRoy Marples <roy@marples.name>
Fri, 12 Sep 2014 13:37:47 +0000 (13:37 +0000)
committerRoy Marples <roy@marples.name>
Fri, 12 Sep 2014 13:37:47 +0000 (13:37 +0000)
src/dhcpcd-qt/dhcpcd-wi.cpp

index b8f2c547ed9439b0ae629441007ede124affbf5d..0252c4d7d49033537416e3e25fc6c9b1e4f056a5 100644 (file)
@@ -158,10 +158,12 @@ void DhcpcdWi::createMenu(QMenu *menu)
 QMenu *DhcpcdWi::createIfMenu(QMenu *parent)
 {
        DHCPCD_IF *ifp;
+       QIcon icon;
 
        ifp = dhcpcd_wpa_if(wpa);
        menu = new DhcpcdIfMenu(ifp, parent);
-       menu->setIcon(QIcon::fromTheme("network-wireless"));
+       icon = DhcpcdQt::getIcon("devices", "network-wireless");
+       menu->setIcon(icon);
        createMenu1(menu);
        return menu;
 }