-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 010e0af..cddb478 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp @@ -138,51 +138,54 @@ int set=0; LocationComboBox->insertStringList(list); qDebug("set item %d", set); LocationComboBox->setCurrentItem(set); } void SoundSettings::setLocation(const QString & string) { Config config( "Vmemo" ); config.setGroup( "System" ); config.writeEntry("RecLocation",string); qDebug("set location "+string); config.write(); } void SoundSettings::cleanUp() { Config cfg("Vmemo"); cfg.writeEntry("Alert",AlertCheckBox->isChecked()); cfg.setGroup("Record"); cfg.writeEntry("SampleRate",sampleRate->currentText()); cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); if(keyReset) QCopEnvelope ("QPE/System", "restart()"); } void SoundSettings::setKeyButton(const QString &name) { Config cfg("Vmemo"); cfg.setGroup("Defaults"); cfg.writeEntry( "toggleKey", keyComboBox->currentItem() ); keyReset = TRUE; if(keyComboBox->currentItem() == 1) cfg.writeEntry( "hideIcon", 0 ); else cfg.writeEntry( "hideIcon", 1); cfg.write(); } void SoundSettings::updateLocationCombo() { } void SoundSettings::setSizeLimitButton(const QString &index) { Config cfg("Vmemo"); cfg.setGroup("Record"); - cfg.writeEntry("SizeLimit", index); + if(index.find("Unlimited",0,TRUE) != -1) + cfg.writeEntry("SizeLimit", -1); + else + cfg.writeEntry("SizeLimit", index); cfg.write(); } |