-rw-r--r-- | core/obex/btobex.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/obex/btobex.cpp b/core/obex/btobex.cpp index b8556da..886f3dc 100644 --- a/core/obex/btobex.cpp +++ b/core/obex/btobex.cpp | |||
@@ -25,25 +25,24 @@ BtObex::BtObex( QObject *parent, const char* name ) | |||
25 | m_rec = 0; | 25 | m_rec = 0; |
26 | m_send=0; | 26 | m_send=0; |
27 | m_count = 0; | 27 | m_count = 0; |
28 | m_receive = false; | 28 | m_receive = false; |
29 | connect( this, SIGNAL(error(int) ), // for recovering to receive | 29 | connect( this, SIGNAL(error(int) ), // for recovering to receive |
30 | SLOT(slotError() ) ); | 30 | SLOT(slotError() ) ); |
31 | connect( this, SIGNAL(sent(bool) ), | 31 | connect( this, SIGNAL(sent(bool) ), |
32 | SLOT(slotError() ) ); | 32 | SLOT(slotError() ) ); |
33 | btManager = NULL; | 33 | btManager = NULL; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | BtObex::~BtObex() { | 36 | BtObex::~BtObex() { |
37 | if (btManager) | ||
38 | delete btManager; | 37 | delete btManager; |
39 | delete m_rec; | 38 | delete m_rec; |
40 | delete m_send; | 39 | delete m_send; |
41 | } | 40 | } |
42 | 41 | ||
43 | void BtObex::receive() { | 42 | void BtObex::receive() { |
44 | m_receive = true; | 43 | m_receive = true; |
45 | m_outp = QString::null; | 44 | m_outp = QString::null; |
46 | m_rec = new OProcess(); | 45 | m_rec = new OProcess(); |
47 | 46 | ||
48 | // TODO mbhaynie: No idea if this actually works -- maybe opd is better. | 47 | // TODO mbhaynie: No idea if this actually works -- maybe opd is better. |
49 | *m_rec << "obexftpd" << "-b"; | 48 | *m_rec << "obexftpd" << "-b"; |