From 65ef0e86a879332cbf8b1575886d3c36c7d2d9bd Mon Sep 17 00:00:00 2001 From: josef Date: Tue, 15 Oct 2002 22:36:10 +0000 Subject: - 3 small fixes, please review: - disable all relevant menu items when last session has been closed (but this might not be the correct bugfix, so consider it temporary) - don't set menu status to connected when connection fails - modem sessions: when user cancels connection, close serial connection first again, so we can reconnect (re-dial) later without problems --- (limited to 'noncore/apps/opie-console/io_serial.cpp') diff --git a/noncore/apps/opie-console/io_serial.cpp b/noncore/apps/opie-console/io_serial.cpp index b89a53b..cc63c58 100644 --- a/noncore/apps/opie-console/io_serial.cpp +++ b/noncore/apps/opie-console/io_serial.cpp @@ -46,6 +46,7 @@ bool IOSerial::open() { m_fd = ::open(m_device, O_RDWR | O_NOCTTY | O_NONBLOCK); if (m_fd < 0) { emit error(CouldNotOpen, strerror(errno)); + m_fd = 0; return FALSE; } tcgetattr(m_fd, &tty); -- cgit v0.9.0.2