-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() | |||
402 | 402 | ||
403 | c->setGroup( "Capture" ); | 403 | c->setGroup( "Capture" ); |
404 | writeCaptureFile->setChecked( c->readBoolEntry( "writeCaptureFile", true ) ); | ||
405 | captureFileName->setEnabled( writeCaptureFile->isChecked() ); | ||
406 | getCaptureFileName->setEnabled( writeCaptureFile->isChecked() ); | ||
404 | captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) ); | 407 | captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) ); |
408 | hexViewBufferUnlimited->setChecked( c->readBoolEntry( "hexViewBufferUnlimited", true ) ); | ||
409 | hexViewBufferLimited->setChecked( !c->readBoolEntry( "hexViewBufferUnlimited", true ) ); | ||
410 | hexViewBufferSize->setValue( c->readNumEntry( "hexViewBufferSize", 2000 ) ); | ||
405 | 411 | ||
406 | c->setGroup( "UI" ); | 412 | c->setGroup( "UI" ); |
@@ -452,5 +458,8 @@ void WellenreiterConfigWindow::save() | |||
452 | 458 | ||
453 | c->setGroup( "Capture" ); | 459 | c->setGroup( "Capture" ); |
460 | c->writeEntry( "writeCaptureFile", writeCaptureFile->isChecked() ); | ||
454 | c->writeEntry( "filename", captureFileName->text() ); | 461 | c->writeEntry( "filename", captureFileName->text() ); |
462 | c->writeEntry( "hexViewBufferUnlimited", hexViewBufferUnlimited->isChecked() ); | ||
463 | c->writeEntry( "hexViewBufferSize", hexViewBufferSize->value() ); | ||
455 | 464 | ||
456 | c->setGroup( "UI" ); | 465 | c->setGroup( "UI" ); |