author | zecke <zecke> | 2003-02-25 20:51:11 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-02-25 20:51:11 (UTC) |
commit | e6b5b28a59f5b2bf1812f5d84203f42a7d5d6916 (patch) (side-by-side diff) | |
tree | bb6a4d52de61e1ae871ad10a302c1b140d079bb7 /core | |
parent | 2971a56b1e30af0e1604d898e5a56c6f81f2daf0 (diff) | |
download | opie-e6b5b28a59f5b2bf1812f5d84203f42a7d5d6916.zip opie-e6b5b28a59f5b2bf1812f5d84203f42a7d5d6916.tar.gz opie-e6b5b28a59f5b2bf1812f5d84203f42a7d5d6916.tar.bz2 |
Honor the clicking of the (X)-Button
-rw-r--r-- | core/obex/obexsend.cpp | 4 | ||||
-rw-r--r-- | core/obex/obexsend.h | 3 |
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 @@ -167,4 +167,8 @@ void SendWidget::slotStartIrda() { m_obex->send( m_file ); } +void SendWidget::closeEvent( QCloseEvent* e) { + e->accept(); // make sure + QTimer::singleShot(0, this, SLOT(slotDone() ) ); +} void SendWidget::slotDone() { QCopEnvelope e0("QPE/IrDaApplet", "disableIrda()"); 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 @@ -40,4 +40,7 @@ namespace OpieObex { QString file()const; + protected: + void closeEvent( QCloseEvent* ); + public slots: void send( const QString& file, const QString& desc ); |