summaryrefslogtreecommitdiff
path: root/noncore/net
Unidiff
Diffstat (limited to 'noncore/net') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 0385cb1..3e7e2ab 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -203,28 +203,29 @@ namespace OpieTooth {
203 /** 203 /**
204 * Write the list of allready known devices 204 * Write the list of allready known devices
205 * 205 *
206 */ 206 */
207 void BlueBase::writeSavedDevices() { 207 void BlueBase::writeSavedDevices() {
208 208
209 QListViewItemIterator it( ListView2 ); 209 QListViewItemIterator it( ListView2 );
210 210
211 for ( ; it.current(); ++it ) { 211 for ( ; it.current(); ++it ) {
212 212
213 // seperate config file for each device, to store more information in future. 213 // seperate config file for each device, to store more information in future.
214// TO FIX: BTLISTITEM!!! 214// TO FIX: BTLISTITEM!!!
215 qDebug( "/Settings/bluetooth/" + (((BTListItem*)it.current())->mac()) + ".conf");
216 Config conf( QDir::homeDirPath() + "/Settings/bluetooth/" + (((BTListItem*)it.current())->mac()) + ".conf", Config::File );
215 217
216 // Config conf( QDir::homeDirPath() + "/Settings/bluetooth/" + (((BTListItem)it.current())->mac()) + ".conf", Config::File ); 218 conf.setGroup( "Info" );
217 // conf.setGroup( "Info" ); 219 conf.writeEntry( "name", ((BTListItem*)it.current())->name() );
218 // conf.writeEntry( "name", it.current()->name() );
219 } 220 }
220 } 221 }
221 222
222 223
223 /** 224 /**
224 * Set up the gui 225 * Set up the gui
225 */ 226 */
226 void BlueBase::initGui() { 227 void BlueBase::initGui() {
227 228
228 StatusLabel->setText( getStatus() ); // maybe move it to getStatus() 229 StatusLabel->setText( getStatus() ); // maybe move it to getStatus()
229 230
230 cryptCheckBox->setChecked( useEncryption ); 231 cryptCheckBox->setChecked( useEncryption );