summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp3
-rw-r--r--noncore/net/opietooth/manager/scandialog.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 4d476ac..22b16d2 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -2,7 +2,6 @@
2 * bluebase.cpp * 2 * bluebase.cpp *
3 * --------------------- 3 * ---------------------
4 * 4 *
5 * begin : Sun 10 17:20:00 CEST 2002
6 * copyright : (c) 2002 by Maximilian Reiß 5 * copyright : (c) 2002 by Maximilian Reiß
7 * email : max.reiss@gmx.de 6 * email : max.reiss@gmx.de
8 * 7 *
@@ -301,7 +300,7 @@ namespace OpieTooth {
301 void BlueBase::startScan() { 300 void BlueBase::startScan() {
302 301
303 ScanDialog *scan = new ScanDialog( this, "", true); 302 ScanDialog *scan = new ScanDialog( this, "", true);
304 QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevice>&) ), 303 QObject::connect( scan, SIGNAL( selectedDevices(QList<RemoteDevice>&) ),
305 this, SLOT( addSearchedDevices(QList<RemoteDevice>& ) )); 304 this, SLOT( addSearchedDevices(QList<RemoteDevice>& ) ));
306 305
307 scan->showMaximized(); 306 scan->showMaximized();
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp
index bd7d23c..f8f7b15 100644
--- a/noncore/net/opietooth/manager/scandialog.cpp
+++ b/noncore/net/opietooth/manager/scandialog.cpp
@@ -147,6 +147,7 @@ namespace OpieTooth {
147 } 147 }
148 148
149 QList<RemoteDevice> *deviceList = new QList<RemoteDevice>; 149 QList<RemoteDevice> *deviceList = new QList<RemoteDevice>;
150 deviceList->setAutoDelete(true);
150 151
151 QListViewItemIterator it( ListView1 ); 152 QListViewItemIterator it( ListView1 );
152 for ( ; it.current(); ++it ) { 153 for ( ; it.current(); ++it ) {
@@ -156,6 +157,7 @@ namespace OpieTooth {
156 } 157 }
157 } 158 }
158 emit selectedDevices( *deviceList ); 159 emit selectedDevices( *deviceList );
160 delete deviceList;
159 } 161 }
160 162
161/* 163/*