summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/modemconfigwidget.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/modemconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/modemconfigwidget.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp
index 37eb184..f7fb6f3 100644
--- a/noncore/apps/opie-console/modemconfigwidget.cpp
+++ b/noncore/apps/opie-console/modemconfigwidget.cpp
@@ -129,19 +129,20 @@ void ModemConfigWidget::load( const Profile& prof ) {
129 m_base->setStop( IOLayerBase::Stop_OnePointFive ); 129 m_base->setStop( IOLayerBase::Stop_OnePointFive );
130 } else { 130 } else {
131 m_base->setStop( IOLayerBase::Stop_One ); 131 m_base->setStop( IOLayerBase::Stop_One );
132 } 132 }
133 133
134 134
135 135 atConf->readConfig( prof );
136 if ( prof.readEntry( "Device" ).isEmpty() ) { 136 if ( prof.readEntry( "Device" ).isEmpty() ) {
137 qWarning("device empty!");
137 return; 138 return;
138 } 139 }
139 setCurrent( prof.readEntry( "Device" ), m_deviceCmb ); 140 setCurrent( prof.readEntry( "Device" ), m_deviceCmb );
140 141
141 atConf->readConfig( prof ); 142
142} 143}
143 144
144/* 145/*
145 * save speed, 146 * save speed,
146 * flow, 147 * flow,
147 * parity 148 * parity
@@ -231,12 +232,16 @@ void ModemConfigWidget::save( Profile& prof ) {
231 232
232 atConf->writeConfig(prof); 233 atConf->writeConfig(prof);
233} 234}
234 235
235void ModemConfigWidget::slotAT() { 236void ModemConfigWidget::slotAT() {
236 // ATConfigDialog conf( this, "ATConfig", true ); 237 // ATConfigDialog conf( this, "ATConfig", true );
238 // josef/Max I know why don't you create the stuff on the stack
239 // but making it a TopLevel Dialog and ignoring
240 // cancel is not fun either...
241 // what to do? FIXME!!! -zecke
237 atConf->showMaximized(); 242 atConf->showMaximized();
238 if ( atConf->exec() != QDialog::Accepted ) { 243 if ( atConf->exec() != QDialog::Accepted ) {
239 // reload old settings 244 // reload old settings
240 } 245 }
241} 246}
242 247