author | josef <josef> | 2002-10-18 17:14:27 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-18 17:14:27 (UTC) |
commit | 0f230c7120d49a1718fe3e442e1559968a21f00d (patch) (unidiff) | |
tree | b27ddd04c385d6c0eef4a91f010017fb9cfa6598 | |
parent | 12851a09a2761ca6e189f080e9ca69bf4974302f (diff) | |
download | opie-0f230c7120d49a1718fe3e442e1559968a21f00d.zip opie-0f230c7120d49a1718fe3e442e1559968a21f00d.tar.gz opie-0f230c7120d49a1718fe3e442e1559968a21f00d.tar.bz2 |
- save at modem configuration when closing dialog
This is not ideal yet, but better than nothing.
We might actually use the configured values rather than hardcoded defaults now
:)
-rw-r--r-- | noncore/apps/opie-console/modemconfigwidget.cpp | 7 |
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 | |||
@@ -172,19 +172,22 @@ void ModemConfigWidget::save( Profile& prof ) { | |||
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 | ||
180 | void ModemConfigWidget::slotAT() { | 183 | void 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 | ||
188 | void ModemConfigWidget::slotDial() { | 191 | void 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()) { |