summaryrefslogtreecommitdiff
path: root/core/applets/obex/obeximpl.cc
Side-by-side diff
Diffstat (limited to 'core/applets/obex/obeximpl.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/obex/obeximpl.cc12
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
@@ -50,4 +50,5 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) {
QString filename;
stream >> filename;
+ m_sendgui->raise(); // should be on top
m_sendgui->showMaximized();
m_sendgui->lblPath->setText(filename);
@@ -57,7 +58,12 @@ void ObexImpl::slotMessage( const QCString& msg, const QByteArray&data ) {
connect( (QObject*)m_obex, SIGNAL( sent() ), this,
SLOT( slotSent() ) );
- }else if(msg == "receive(bool)" ) { // open a GUI
+ }else if(msg == "receive(int)" ) { // open a GUI
m_recvgui->showMaximized();
- m_obex->receive();
+ int receiveD = 0;
+ stream >> receiveD;
+ if ( receiveD == 1)
+ m_obex->receive();
+ else
+ m_obex->setReceiveEnabled( false );
} else if (msg =="done(QString)") {
@@ -88,5 +94,5 @@ void ObexImpl::slotError( int errorCode) {
QString errorString = "";
- if (errorCode = -1) {
+ if (errorCode == -1) {
errorString = "test";
}