-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 | |||
@@ -154,35 +154,38 @@ void SoundSettings::cleanUp() { | |||
154 | 154 | ||
155 | cfg.setGroup("Record"); | 155 | cfg.setGroup("Record"); |
156 | cfg.writeEntry("SampleRate",sampleRate->currentText()); | 156 | cfg.writeEntry("SampleRate",sampleRate->currentText()); |
157 | cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); | 157 | cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); |
158 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); | 158 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); |
159 | 159 | ||
160 | if(keyReset) QCopEnvelope ("QPE/System", "restart()"); | 160 | if(keyReset) QCopEnvelope ("QPE/System", "restart()"); |
161 | 161 | ||
162 | } | 162 | } |
163 | 163 | ||
164 | void SoundSettings::setKeyButton(const QString &name) { | 164 | void SoundSettings::setKeyButton(const QString &name) { |
165 | Config cfg("Vmemo"); | 165 | Config cfg("Vmemo"); |
166 | cfg.setGroup("Defaults"); | 166 | cfg.setGroup("Defaults"); |
167 | cfg.writeEntry( "toggleKey", keyComboBox->currentItem() ); | 167 | cfg.writeEntry( "toggleKey", keyComboBox->currentItem() ); |
168 | keyReset = TRUE; | 168 | keyReset = TRUE; |
169 | if(keyComboBox->currentItem() == 1) | 169 | if(keyComboBox->currentItem() == 1) |
170 | cfg.writeEntry( "hideIcon", 0 ); | 170 | cfg.writeEntry( "hideIcon", 0 ); |
171 | else | 171 | else |
172 | cfg.writeEntry( "hideIcon", 1); | 172 | cfg.writeEntry( "hideIcon", 1); |
173 | 173 | ||
174 | 174 | ||
175 | cfg.write(); | 175 | cfg.write(); |
176 | } | 176 | } |
177 | 177 | ||
178 | void SoundSettings::updateLocationCombo() { | 178 | void SoundSettings::updateLocationCombo() { |
179 | 179 | ||
180 | } | 180 | } |
181 | 181 | ||
182 | void SoundSettings::setSizeLimitButton(const QString &index) { | 182 | void SoundSettings::setSizeLimitButton(const QString &index) { |
183 | 183 | ||
184 | Config cfg("Vmemo"); | 184 | Config cfg("Vmemo"); |
185 | cfg.setGroup("Record"); | 185 | cfg.setGroup("Record"); |
186 | cfg.writeEntry("SizeLimit", index); | 186 | if(index.find("Unlimited",0,TRUE) != -1) |
187 | cfg.writeEntry("SizeLimit", -1); | ||
188 | else | ||
189 | cfg.writeEntry("SizeLimit", index); | ||
187 | cfg.write(); | 190 | cfg.write(); |
188 | } | 191 | } |