summaryrefslogtreecommitdiffstats
path: root/kcontrol/hwmanager/hwmanager.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-03-16 17:18:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-03-16 17:18:20 +0900
commit3aa097d05d83712329ab265a007036ba88772dc6 (patch)
treecfad17bb0a040f49eef3fb8847d1cd23e3ff59d0 /kcontrol/hwmanager/hwmanager.cpp
parent02549ecc727385b7499fcef49fe210ff71822c16 (diff)
downloadtdebase-3aa097d05d83712329ab265a007036ba88772dc6.tar.gz
tdebase-3aa097d05d83712329ab265a007036ba88772dc6.zip
hwmanager: simplify code after tdelibs commit 5f795c0b.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kcontrol/hwmanager/hwmanager.cpp')
-rw-r--r--kcontrol/hwmanager/hwmanager.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/kcontrol/hwmanager/hwmanager.cpp b/kcontrol/hwmanager/hwmanager.cpp
index 783f703fb..265901003 100644
--- a/kcontrol/hwmanager/hwmanager.cpp
+++ b/kcontrol/hwmanager/hwmanager.cpp
@@ -97,7 +97,7 @@ TDEHWManager::TDEHWManager(TQWidget *parent, const char *name, const TQStringLis
connect(base->showByConnection, TQT_SIGNAL(clicked()), TQT_SLOT(populateTreeView()));
connect(hwdevices, TQT_SIGNAL(hardwareAdded(TDEGenericDevice*)), this, TQT_SLOT(populateTreeView()));
- connect(hwdevices, TQT_SIGNAL(hardwareRemoved(TDEGenericDevice*)), this, TQT_SLOT(delayedPopulateTreeView()));
+ connect(hwdevices, TQT_SIGNAL(hardwareRemoved(TDEGenericDevice*)), this, TQT_SLOT(populateTreeView()));
connect(hwdevices, TQT_SIGNAL(hardwareUpdated(TDEGenericDevice*)), this, TQT_SLOT(deviceChanged(TDEGenericDevice*)));
load();
@@ -191,13 +191,6 @@ void TDEHWManager::populateTreeView()
}
}
-void TDEHWManager::delayedPopulateTreeView() {
- // When hardwareRemoved() is triggered, the list of devices still contains the device which
- // is about to be removed. Therefore we need to delay repopulating the device tree after the
- // removal of the device.
- TQTimer::singleShot(0, this, TQT_SLOT(populateTreeView()));
-}
-
void TDEHWManager::populateTreeViewLeaf(DeviceIconItem *parent, bool show_by_connection, TQString selected_syspath) {
if (show_by_connection) {
TDEHardwareDevices *hwdevices = TDEGlobal::hardwareDevices();