Diffstat (limited to 'core/applets/obex/obeximpl.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/obex/obeximpl.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/applets/obex/obeximpl.cc b/core/applets/obex/obeximpl.cc index 856f100..0c137af 100644 --- a/core/applets/obex/obeximpl.cc +++ b/core/applets/obex/obeximpl.cc | |||
@@ -51,2 +51,3 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) { | |||
51 | stream >> filename; | 51 | stream >> filename; |
52 | m_sendgui->raise(); // should be on top | ||
52 | m_sendgui->showMaximized(); | 53 | m_sendgui->showMaximized(); |
@@ -58,5 +59,10 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) { | |||
58 | SLOT( slotSent() ) ); | 59 | SLOT( slotSent() ) ); |
59 | }else if(msg == "receive(bool)" ) { // open a GUI | 60 | }else if(msg == "receive(int)" ) { // open a GUI |
60 | m_recvgui->showMaximized(); | 61 | m_recvgui->showMaximized(); |
61 | m_obex->receive(); | 62 | int receiveD = 0; |
63 | stream >> receiveD; | ||
64 | if ( receiveD == 1) | ||
65 | m_obex->receive(); | ||
66 | else | ||
67 | m_obex->setReceiveEnabled( false ); | ||
62 | 68 | ||
@@ -89,3 +95,3 @@ void ObexImpl::slotError( int errorCode) { | |||
89 | QString errorString = ""; | 95 | QString errorString = ""; |
90 | if (errorCode = -1) { | 96 | if (errorCode == -1) { |
91 | errorString = "test"; | 97 | errorString = "test"; |