summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 5c5f069..8b15c4f 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -45,2 +45,3 @@
#include <qtimer.h>
+#include <qlist.h>
@@ -387,2 +388,12 @@ void BlueBase::addServicesToDevice( const QString& device, Services::ValueList s
+ // remove previous entries
+ QList<QListViewItem> tempList;
+ tempList.setAutoDelete( true );
+ QListViewItem * child = deviceItem->firstChild();
+ while( child ) {
+ tempList.append( child );
+ child = child->nextSibling();
+ }
+ tempList.clear();
+
QValueList<OpieTooth::Services>::Iterator it2;
@@ -390,2 +401,3 @@ void BlueBase::addServicesToDevice( const QString& device, Services::ValueList s
+
if (!servicesList.isEmpty() ) {
@@ -407,3 +419,3 @@ void BlueBase::addServicesToDevice( const QString& device, Services::ValueList s
Services s1;
- s1.setServiceName( tr("no serives found") );
+ s1.setServiceName( tr("no services found") );
serviceItem = new BTServiceItem( deviceItem, s1 );
@@ -448,3 +460,3 @@ void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList )
// recall connection search after some time
- QTimer::singleShot( 20000, this, SLOT( addConnectedDevices() ) );
+ QTimer::singleShot( 15000, this, SLOT( addConnectedDevices() ) );
}