summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_modem.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp
index e1f9ff1..f246d81 100644
--- a/noncore/apps/opie-console/io_modem.cpp
+++ b/noncore/apps/opie-console/io_modem.cpp
@@ -17,8 +17,9 @@ IOModem::~IOModem() {
17void IOModem::close() { 17void IOModem::close() {
18 // Hangup, discarding result 18 // Hangup, discarding result
19 Dialer d(m_profile, rawIO()); 19 int fd = rawIO();
20 Dialer d(m_profile, fd);
20 d.setHangupOnly(); 21 d.setHangupOnly();
21 d.exec(); 22 d.exec();
22 closeRawIO(); 23 closeRawIO(fd);
23 24
24 IOSerial::close(); 25 IOSerial::close();
@@ -29,8 +30,9 @@ bool IOModem::open() {
29 if(!ret) return false; 30 if(!ret) return false;
30 31
31 Dialer d(m_profile, rawIO()); 32 int fd = rawIO();
33 Dialer d(m_profile, fd);
32 34
33 int result = d.exec(); 35 int result = d.exec();
34 closeRawIO(); 36 closeRawIO(fd);
35 if(result == QDialog::Accepted) 37 if(result == QDialog::Accepted)
36 { 38 {