-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index 89ed24c..ae149e2 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp @@ -402,5 +402,11 @@ void WellenreiterConfigWindow::load() c->setGroup( "Capture" ); + writeCaptureFile->setChecked( c->readBoolEntry( "writeCaptureFile", true ) ); + captureFileName->setEnabled( writeCaptureFile->isChecked() ); + getCaptureFileName->setEnabled( writeCaptureFile->isChecked() ); captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) ); + hexViewBufferUnlimited->setChecked( c->readBoolEntry( "hexViewBufferUnlimited", true ) ); + hexViewBufferLimited->setChecked( !c->readBoolEntry( "hexViewBufferUnlimited", true ) ); + hexViewBufferSize->setValue( c->readNumEntry( "hexViewBufferSize", 2000 ) ); c->setGroup( "UI" ); @@ -452,5 +458,8 @@ void WellenreiterConfigWindow::save() c->setGroup( "Capture" ); + c->writeEntry( "writeCaptureFile", writeCaptureFile->isChecked() ); c->writeEntry( "filename", captureFileName->text() ); + c->writeEntry( "hexViewBufferUnlimited", hexViewBufferUnlimited->isChecked() ); + c->writeEntry( "hexViewBufferSize", hexViewBufferSize->value() ); c->setGroup( "UI" ); |