-rw-r--r-- | core/obex/obexhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/obex/obexhandler.cpp b/core/obex/obexhandler.cpp index f71a233..16e1c2f 100644 --- a/core/obex/obexhandler.cpp +++ b/core/obex/obexhandler.cpp @@ -35,31 +35,31 @@ void ObexHandler::doReceive(bool b) { else if (m_receiver && !b ) { delete m_receiver; m_receiver=0; }else if (!m_receiver && b ) { m_receiver= new Receiver; } } void ObexHandler::slotSent() { QString file = m_sender->file(); delete m_sender; m_sender = 0; QCopEnvelope e ("QPE/Obex", "done(QString)" ); e << file; doReceive(m_wasRec ); m_wasRec = false; } void ObexHandler::irdaMessage( const QCString& msg, const QByteArray& data) { QDataStream stream( data, IO_ReadOnly ); if ( msg == "send(QString,QString,QString)" ) { QString name, desc; stream >> name; stream >> desc; m_wasRec = (m_receiver != 0 ); doReceive( false ); - doSend(name, desc); + doSend(desc, name); }else if (msg == "receive(int)") { int rec; stream >> rec; doReceive(rec); } } |