From f7acce44a9944c2267d861162d7d85b306321791 Mon Sep 17 00:00:00 2001 From: harlekin Date: Wed, 09 Oct 2002 22:21:35 +0000 Subject: set a default button on flow too --- diff --git a/noncore/apps/opie-console/irdaconfigwidget.cpp b/noncore/apps/opie-console/irdaconfigwidget.cpp index 1cc041b..2341fd4 100644 --- a/noncore/apps/opie-console/irdaconfigwidget.cpp +++ b/noncore/apps/opie-console/irdaconfigwidget.cpp @@ -53,7 +53,7 @@ void IrdaConfigWidget::load( const Profile& prof ) { m_base->setFlow( IOLayerBase::Hardware ); } else if (rad_flow == 2) { m_base->setFlow( IOLayerBase::Software ); - } else if (rad_flow == 0) { + } else { m_base->setFlow( IOLayerBase::None ); } diff --git a/noncore/apps/opie-console/serialconfigwidget.cpp b/noncore/apps/opie-console/serialconfigwidget.cpp index b1ec408..89acc98 100644 --- a/noncore/apps/opie-console/serialconfigwidget.cpp +++ b/noncore/apps/opie-console/serialconfigwidget.cpp @@ -55,14 +55,15 @@ void SerialConfigWidget::load( const Profile& prof ) { m_base->setFlow( IOLayerBase::Hardware ); } else if (rad_flow == 2) { m_base->setFlow( IOLayerBase::Software ); - } else if (rad_flow == 0) { + } else { m_base->setFlow( IOLayerBase::None ); } - if (rad_parity == 1) + if (rad_parity == 1) { m_base->setParity( IOLayerBase::Even ); - else + } else { m_base->setParity( IOLayerBase::Odd ); + } switch( speed ) { case 115200: -- cgit v0.9.0.2