From e6b5b28a59f5b2bf1812f5d84203f42a7d5d6916 Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 25 Feb 2003 20:51:11 +0000 Subject: Honor the clicking of the (X)-Button --- 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() { m_devBox->setStatus( m_irDaIt.key(), tr("Start sending") ); 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()"); 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 { QString file()const; + protected: + void closeEvent( QCloseEvent* ); + public slots: void send( const QString& file, const QString& desc ); -- cgit v0.9.0.2