summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console
authorjosef <josef>2002-10-21 20:25:16 (UTC)
committer josef <josef>2002-10-21 20:25:16 (UTC)
commit9d48ea3af681dec0644c980dba889a85b9eb19a8 (patch) (side-by-side diff)
tree69868d4452f6461bae4011436b9d25c94985b25b /noncore/apps/opie-console
parentdf721474c6ed785ab7f258f4a9d9384cafa3f8fa (diff)
downloadopie-9d48ea3af681dec0644c980dba889a85b9eb19a8.zip
opie-9d48ea3af681dec0644c980dba889a85b9eb19a8.tar.gz
opie-9d48ea3af681dec0644c980dba889a85b9eb19a8.tar.bz2
- argh! fix for closeRawIO()
even 2-line-patches can be wrong :)
Diffstat (limited to 'noncore/apps/opie-console') (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
@@ -16,10 +16,11 @@ IOModem::~IOModem() {
void IOModem::close() {
// Hangup, discarding result
- Dialer d(m_profile, rawIO());
+ int fd = rawIO();
+ Dialer d(m_profile, fd);
d.setHangupOnly();
d.exec();
- closeRawIO();
+ closeRawIO(fd);
IOSerial::close();
}
@@ -28,10 +29,11 @@ bool IOModem::open() {
bool ret = IOSerial::open();
if(!ret) return false;
- Dialer d(m_profile, rawIO());
+ int fd = rawIO();
+ Dialer d(m_profile, fd);
int result = d.exec();
- closeRawIO();
+ closeRawIO(fd);
if(result == QDialog::Accepted)
{
return true;