summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp5
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
@@ -162,27 +162,30 @@ void SoundSettings::cleanUp() {
}
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();
}