summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/modemconfigwidget.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp
index 878b0cf..c0ab0fc 100644
--- a/noncore/apps/opie-console/modemconfigwidget.cpp
+++ b/noncore/apps/opie-console/modemconfigwidget.cpp
@@ -166,31 +166,34 @@ void ModemConfigWidget::save( Profile& prof ) {
166 case IOLayerBase::Baud_19200: 166 case IOLayerBase::Baud_19200:
167 speed = 19200; 167 speed = 19200;
168 break; 168 break;
169 case IOLayerBase::Baud_9600: 169 case IOLayerBase::Baud_9600:
170 speed = 9600; 170 speed = 9600;
171 break; 171 break;
172 } 172 }
173 173
174 prof.writeEntry( "Flow", flow ); 174 prof.writeEntry( "Flow", flow );
175 prof.writeEntry( "Parity", parity ); 175 prof.writeEntry( "Parity", parity );
176 prof.writeEntry( "Speed", speed ); 176 prof.writeEntry( "Speed", speed );
177 prof.writeEntry( "Number", m_telNumber->text() ); 177 prof.writeEntry( "Number", m_telNumber->text() );
178
179
180 atConf->writeConfig(prof);
178} 181}
179 182
180void ModemConfigWidget::slotAT() { 183void ModemConfigWidget::slotAT() {
181 // ATConfigDialog conf( this, "ATConfig", true ); 184 // ATConfigDialog conf( this, "ATConfig", true );
182 atConf->showMaximized(); 185 atConf->showMaximized();
183 if ( atConf->exec() == QDialog::Accepted ) { 186 if ( atConf->exec() != QDialog::Accepted ) {
184 // atConf->writeConfig(); 187 // reload old settings
185 } 188 }
186} 189}
187 190
188void ModemConfigWidget::slotDial() { 191void ModemConfigWidget::slotDial() {
189 DialDialog dial( this, "DialConfig", true ); 192 DialDialog dial( this, "DialConfig", true );
190 if(!m_telNumber->text().isEmpty()) { 193 if(!m_telNumber->text().isEmpty()) {
191 dial.setNumber(m_telNumber->text().replace(QRegExp("[\\-\\/\\ ]"), "").toInt()); 194 dial.setNumber(m_telNumber->text().replace(QRegExp("[\\-\\/\\ ]"), "").toInt());
192 } 195 }
193 dial.showMaximized(); 196 dial.showMaximized();
194 if ( dial.exec() == QDialog::Accepted ) { 197 if ( dial.exec() == QDialog::Accepted ) {
195 m_telNumber->setText( dial.number() ); 198 m_telNumber->setText( dial.number() );
196 } 199 }