1
0
Fork 0
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:
Dominik Riebeling 2012-02-06 22:35:08 +01:00
parent 779c2f3eb1
commit f1eedb80a2

View file

@ -82,12 +82,13 @@ void EncoderLame::generateSettings()
void EncoderLame::saveSettings()
{
// no user settings right now.
if(m_symbolsResolved) {
RbSettings::setSubValue("lame", RbSettings::EncoderVolume,
getSetting(VOLUME)->current().toDouble());
RbSettings::setSubValue("lame", RbSettings::EncoderQuality,
getSetting(QUALITY)->current().toDouble());
}
}
bool EncoderLame::start()
{