-rw-r--r-- | core/obex/btobex.cpp | 1 | ||||
-rw-r--r-- | core/obex/obexsend.cpp | 29 |
2 files changed, 20 insertions, 10 deletions
diff --git a/core/obex/btobex.cpp b/core/obex/btobex.cpp index b8556da..886f3dc 100644 --- a/core/obex/btobex.cpp +++ b/core/obex/btobex.cpp | |||
@@ -36,3 +36,2 @@ BtObex::BtObex( QObject *parent, const char* name ) | |||
36 | BtObex::~BtObex() { | 36 | BtObex::~BtObex() { |
37 | if (btManager) | ||
38 | delete btManager; | 37 | delete btManager; |
diff --git a/core/obex/obexsend.cpp b/core/obex/obexsend.cpp index dbbb7b3..8432d16 100644 --- a/core/obex/obexsend.cpp +++ b/core/obex/obexsend.cpp | |||
@@ -94,3 +94,4 @@ void SendWidget::setReceiverStatus( int id, const QString& status ) { | |||
94 | void SendWidget::slotIrDaDevices( const QStringList& list) { | 94 | void SendWidget::slotIrDaDevices( const QStringList& list) { |
95 | for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) { | 95 | for (QStringList::ConstIterator it = list.begin(); |
96 | it != list.end(); ++it ) { | ||
96 | int id = addReceiver(*it, "obex/irda.png"); | 97 | int id = addReceiver(*it, "obex/irda.png"); |
@@ -104,3 +105,4 @@ void SendWidget::slotIrDaDevices( const QStringList& list) { | |||
104 | void SendWidget::slotBTDevices( const QMap<QString, QString>& str ) { | 105 | void SendWidget::slotBTDevices( const QMap<QString, QString>& str ) { |
105 | for(QMap<QString, QString>::ConstIterator it = str.begin(); it != str.end(); ++it ) { | 106 | for(QMap<QString, QString>::ConstIterator it = str.begin(); |
107 | it != str.end(); ++it ) { | ||
106 | int id = addReceiver(it.key(), "obex/bt.png"); | 108 | int id = addReceiver(it.key(), "obex/bt.png"); |
@@ -141,4 +143,5 @@ void SendWidget::slotIrTry(unsigned int trI) { | |||
141 | void SendWidget::slotStartIrda() { | 143 | void SendWidget::slotStartIrda() { |
142 | if ( !m_irDa.count() ) return; | 144 | if ( !m_irDa.count() ) |
143 | if ( m_irDaIt == m_irDa.end() ) { | 145 | return; |
146 | if ( m_irDaIt == m_irDa.end() || !receiverSelected(m_irDaIt.key())) { | ||
144 | irdaStatus->setText(tr("complete.")); | 147 | irdaStatus->setText(tr("complete.")); |
@@ -224,3 +227,3 @@ void SendWidget::toggle_receiver(QListViewItem* item) | |||
224 | else | 227 | else |
225 | item->setPixmap(2,Resource::loadPixmap("backup/check.png")); | 228 | item->setPixmap(2,Resource::loadPixmap("obex/check.png")); |
226 | } | 229 | } |
@@ -228,6 +231,14 @@ void SendWidget::toggle_receiver(QListViewItem* item) | |||
228 | 231 | ||
229 | void SendWidget::closeEvent( QCloseEvent* e) { | 232 | void SendWidget::closeEvent( QCloseEvent* evt) { |
230 | obexSendBase::closeEvent(e); | 233 | delete m_obex; |
231 | QCopEnvelope e0("QPE/IrDaApplet", "disableIrda()"); | 234 | m_obex = NULL; |
232 | QCopEnvelope e1("QPE/Bluetooth", "disableBluetooth()"); | 235 | delete m_btobex; |
236 | m_btobex = NULL; | ||
237 | obexSendBase::closeEvent(evt); | ||
238 | { | ||
239 | QCopEnvelope e("QPE/IrDaApplet", "disableIrda()"); | ||
240 | } | ||
241 | { | ||
242 | QCopEnvelope e("QPE/Bluetooth", "disableBluetooth()"); | ||
243 | } | ||
233 | } | 244 | } |