forked from len0rd/rockbox
Don't try to save settings if none available.
Fixes a crash when leaving the encoder settings dialog with the Ok button but the dynamically loaded library missing, in which case no settings will be available. Change-Id: I889a0bbcde6bed2df658b5df57341edf6802daad
This commit is contained in:
parent
779c2f3eb1
commit
f1eedb80a2
1 changed files with 6 additions and 5 deletions
|
|
@ -82,12 +82,13 @@ void EncoderLame::generateSettings()
|
||||||
|
|
||||||
void EncoderLame::saveSettings()
|
void EncoderLame::saveSettings()
|
||||||
{
|
{
|
||||||
// no user settings right now.
|
if(m_symbolsResolved) {
|
||||||
RbSettings::setSubValue("lame", RbSettings::EncoderVolume,
|
RbSettings::setSubValue("lame", RbSettings::EncoderVolume,
|
||||||
getSetting(VOLUME)->current().toDouble());
|
getSetting(VOLUME)->current().toDouble());
|
||||||
RbSettings::setSubValue("lame", RbSettings::EncoderQuality,
|
RbSettings::setSubValue("lame", RbSettings::EncoderQuality,
|
||||||
getSetting(QUALITY)->current().toDouble());
|
getSetting(QUALITY)->current().toDouble());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool EncoderLame::start()
|
bool EncoderLame::start()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue