author | harlekin <harlekin> | 2002-06-18 23:38:54 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-18 23:38:54 (UTC) |
commit | f2ecc05c1156ae0f99ea0528646609d63eaa84c0 (patch) (unidiff) | |
tree | 8398f9cd9162ee8ca779369483aebba9a8681379 | |
parent | fac9ec9b389bc82d9d3027f801aaceea72c0d63e (diff) | |
download | opie-f2ecc05c1156ae0f99ea0528646609d63eaa84c0.zip opie-f2ecc05c1156ae0f99ea0528646609d63eaa84c0.tar.gz opie-f2ecc05c1156ae0f99ea0528646609d63eaa84c0.tar.bz2 |
update
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 3 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/scandialog.cpp | 2 |
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 | |||
@@ -1,13 +1,12 @@ | |||
1 | /* | 1 | /* |
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 | * |
9 | */ | 8 | */ |
10 | /*************************************************************************** | 9 | /*************************************************************************** |
11 | * * | 10 | * * |
12 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
@@ -296,17 +295,17 @@ namespace OpieTooth { | |||
296 | } | 295 | } |
297 | 296 | ||
298 | /** | 297 | /** |
299 | * Open the "scan for devices" dialog | 298 | * Open the "scan for devices" dialog |
300 | */ | 299 | */ |
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(); |
308 | } | 307 | } |
309 | 308 | ||
310 | 309 | ||
311 | void BlueBase::setInfo() { | 310 | void BlueBase::setInfo() { |
312 | StatusLabel->setText(getStatus()); | 311 | StatusLabel->setText(getStatus()); |
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 | |||
@@ -142,25 +142,27 @@ namespace OpieTooth { | |||
142 | */ | 142 | */ |
143 | void ScanDialog::emitToManager() { | 143 | void ScanDialog::emitToManager() { |
144 | 144 | ||
145 | if (!ListView1) { | 145 | if (!ListView1) { |
146 | return; | 146 | return; |
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 ) { |
153 | if ( ((QCheckListItem*)it.current())->isOn() ) { | 154 | if ( ((QCheckListItem*)it.current())->isOn() ) { |
154 | RemoteDevice * device = new RemoteDevice( it.current()->text(1), it.current()->text(0)); | 155 | RemoteDevice * device = new RemoteDevice( it.current()->text(1), it.current()->text(0)); |
155 | deviceList->append( device ); | 156 | deviceList->append( device ); |
156 | } | 157 | } |
157 | } | 158 | } |
158 | emit selectedDevices( *deviceList ); | 159 | emit selectedDevices( *deviceList ); |
160 | delete deviceList; | ||
159 | } | 161 | } |
160 | 162 | ||
161 | /* | 163 | /* |
162 | * Cleanup | 164 | * Cleanup |
163 | */ | 165 | */ |
164 | ScanDialog::~ScanDialog() { | 166 | ScanDialog::~ScanDialog() { |
165 | emitToManager(); | 167 | emitToManager(); |
166 | delete localDevice; | 168 | delete localDevice; |