diff options
author | Timothy Pearson <[email protected]> | 2012-04-18 16:04:18 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-04-18 16:04:18 -0500 |
commit | 8abe81cec22c84b0eab5dd877f441f5bafdf5b59 (patch) | |
tree | 03d544bf3895005e25e71621b048b26f43423ab4 /kcontrol | |
parent | a63606b68664ba56c48bfdb86ef042c836faae66 (diff) | |
download | tdebase-8abe81cec22c84b0eab5dd877f441f5bafdf5b59.tar.gz tdebase-8abe81cec22c84b0eab5dd877f441f5bafdf5b59.zip |
Fix hwmanager icon
Diffstat (limited to 'kcontrol')
-rw-r--r-- | kcontrol/hwmanager/hwmanager.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kcontrol/hwmanager/hwmanager.cpp b/kcontrol/hwmanager/hwmanager.cpp index 055425154..96001349d 100644 --- a/kcontrol/hwmanager/hwmanager.cpp +++ b/kcontrol/hwmanager/hwmanager.cpp @@ -168,10 +168,6 @@ void TDEHWManager::populateTreeView() } } } - - if (!selected_syspath.isNull()) { - - } } void TDEHWManager::populateTreeViewLeaf(DeviceIconItem *parent, bool show_by_connection, TQString selected_syspath) { @@ -181,7 +177,7 @@ void TDEHWManager::populateTreeViewLeaf(DeviceIconItem *parent, bool show_by_con TDEGenericDevice *hwdevice; for ( hwdevice = hwlist.first(); hwdevice; hwdevice = hwlist.next() ) { if (hwdevice->parentDevice() == parent->device()) { - DeviceIconItem* item = new DeviceIconItem(parent, hwdevice->friendlyName(), hwdevices->getDeviceTypeIconFromType(hwdevice->type(), base->deviceTree->iconSize()), hwdevice); + DeviceIconItem* item = new DeviceIconItem(parent, hwdevice->friendlyName(), hwdevice->icon(base->deviceTree->iconSize()), hwdevice); if ((!selected_syspath.isNull()) && (hwdevice->systemPath() == selected_syspath)) { base->deviceTree->ensureItemVisible(item); base->deviceTree->setSelected(item, true); |