summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/obex/obexsend.cpp4
-rw-r--r--core/obex/obexsend.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/core/obex/obexsend.cpp b/core/obex/obexsend.cpp
index 0da57ca..1b19c6b 100644
--- a/core/obex/obexsend.cpp
+++ b/core/obex/obexsend.cpp
@@ -166,6 +166,10 @@ void SendWidget::slotStartIrda() {
166 m_devBox->setStatus( m_irDaIt.key(), tr("Start sending") ); 166 m_devBox->setStatus( m_irDaIt.key(), tr("Start sending") );
167 m_obex->send( m_file ); 167 m_obex->send( m_file );
168} 168}
169void SendWidget::closeEvent( QCloseEvent* e) {
170 e->accept(); // make sure
171 QTimer::singleShot(0, this, SLOT(slotDone() ) );
172}
169void SendWidget::slotDone() { 173void SendWidget::slotDone() {
170 QCopEnvelope e0("QPE/IrDaApplet", "disableIrda()"); 174 QCopEnvelope e0("QPE/IrDaApplet", "disableIrda()");
171 QCopEnvelope e1("QPE/Bluetooth", "disableBluetooth()"); 175 QCopEnvelope e1("QPE/Bluetooth", "disableBluetooth()");
diff --git a/core/obex/obexsend.h b/core/obex/obexsend.h
index 02100f7..bf901cb 100644
--- a/core/obex/obexsend.h
+++ b/core/obex/obexsend.h
@@ -39,6 +39,9 @@ namespace OpieObex {
39 39
40 QString file()const; 40 QString file()const;
41 41
42 protected:
43 void closeEvent( QCloseEvent* );
44
42 public slots: 45 public slots:
43 void send( const QString& file, const QString& desc ); 46 void send( const QString& file, const QString& desc );
44 47