-rw-r--r-- | noncore/apps/opie-console/io_modem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp index 2f0c04e..e1f9ff1 100644 --- a/noncore/apps/opie-console/io_modem.cpp +++ b/noncore/apps/opie-console/io_modem.cpp | |||
@@ -14,27 +14,29 @@ IOModem::~IOModem() { | |||
14 | } | 14 | } |
15 | 15 | ||
16 | 16 | ||
17 | void IOModem::close() { | 17 | void IOModem::close() { |
18 | // Hangup, discarding result | 18 | // Hangup, discarding result |
19 | Dialer d(m_profile, rawIO()); | 19 | Dialer d(m_profile, rawIO()); |
20 | d.setHangupOnly(); | 20 | d.setHangupOnly(); |
21 | d.exec(); | 21 | d.exec(); |
22 | closeRawIO(); | ||
22 | 23 | ||
23 | IOSerial::close(); | 24 | IOSerial::close(); |
24 | } | 25 | } |
25 | 26 | ||
26 | bool IOModem::open() { | 27 | bool IOModem::open() { |
27 | bool ret = IOSerial::open(); | 28 | bool ret = IOSerial::open(); |
28 | if(!ret) return false; | 29 | if(!ret) return false; |
29 | 30 | ||
30 | Dialer d(m_profile, rawIO()); | 31 | Dialer d(m_profile, rawIO()); |
31 | 32 | ||
32 | int result = d.exec(); | 33 | int result = d.exec(); |
34 | closeRawIO(); | ||
33 | if(result == QDialog::Accepted) | 35 | if(result == QDialog::Accepted) |
34 | { | 36 | { |
35 | return true; | 37 | return true; |
36 | } | 38 | } |
37 | else | 39 | else |
38 | { | 40 | { |
39 | close(); | 41 | close(); |
40 | return false; | 42 | return false; |