summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-09 22:21:35 (UTC)
committer harlekin <harlekin>2002-10-09 22:21:35 (UTC)
commitf7acce44a9944c2267d861162d7d85b306321791 (patch) (side-by-side diff)
treeb22932c815115a9fe5aae06f3d0e20d01d8cac27
parent23f89cd9b38143f7fbc96f896e128c2c7fba111b (diff)
downloadopie-f7acce44a9944c2267d861162d7d85b306321791.zip
opie-f7acce44a9944c2267d861162d7d85b306321791.tar.gz
opie-f7acce44a9944c2267d861162d7d85b306321791.tar.bz2
set a default button on flow too
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/irdaconfigwidget.cpp2
-rw-r--r--noncore/apps/opie-console/serialconfigwidget.cpp7
2 files changed, 5 insertions, 4 deletions
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
@@ -44,25 +44,25 @@ IrdaConfigWidget::IrdaConfigWidget( const QString& name,
IrdaConfigWidget::~IrdaConfigWidget() {
}
void IrdaConfigWidget::load( const Profile& prof ) {
int rad_flow = prof.readNumEntry("Flow");
int rad_parity = prof.readNumEntry("Parity");
int speed = prof.readNumEntry("Speed");
if (rad_flow == 1) {
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) {
m_base->setParity( IOLayerBase::Even );
} else {
m_base->setParity( IOLayerBase::Odd );
}
switch( speed ) {
case 115200:
m_base->setSpeed(IOLayerBase::Baud_115200 );
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
@@ -46,32 +46,33 @@ SerialConfigWidget::SerialConfigWidget( const QString& name,
SerialConfigWidget::~SerialConfigWidget() {
}
void SerialConfigWidget::load( const Profile& prof ) {
int rad_flow = prof.readNumEntry("Flow");
int rad_parity = prof.readNumEntry("Parity");
int speed = prof.readNumEntry("Speed");
if (rad_flow == 1) {
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:
m_base->setSpeed(IOLayerBase::Baud_115200 );
break;
case 57600:
m_base->setSpeed( IOLayerBase::Baud_57600 );
break;
case 38400:
m_base->setSpeed(IOLayerBase::Baud_38400 );
break;
case 19200: