summaryrefslogtreecommitdiff
path: root/core/applets/obex/obeximpl.cc
Side-by-side diff
Diffstat (limited to 'core/applets/obex/obeximpl.cc') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/obex/obeximpl.cc10
1 files changed, 8 insertions, 2 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 ) {
stream >> filename;
+ m_sendgui->raise(); // should be on top
m_sendgui->showMaximized();
@@ -58,5 +59,10 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) {
SLOT( slotSent() ) );
- }else if(msg == "receive(bool)" ) { // open a GUI
+ }else if(msg == "receive(int)" ) { // open a GUI
m_recvgui->showMaximized();
+ int receiveD = 0;
+ stream >> receiveD;
+ if ( receiveD == 1)
m_obex->receive();
+ else
+ m_obex->setReceiveEnabled( false );
@@ -89,3 +95,3 @@ void ObexImpl::slotError( int errorCode) {
QString errorString = "";
- if (errorCode = -1) {
+ if (errorCode == -1) {
errorString = "test";