Ticket #5312: mythtv-5312-do_not_cache_default_settings_values.patch
File mythtv-5312-do_not_cache_default_settings_values.patch, 750 bytes (added by , 16 years ago) |
---|
-
libs/libmyth/mythcontext.cpp
2743 2743 .arg(key)); 2744 2744 } 2745 2745 2746 if (!found) 2747 value = d->m_settings->GetSetting(key, defaultval); 2748 2746 // Store the value, if appropriate, before setting the default so we 2747 // don't cache the current call's default 2749 2748 if (!value.isNull() && d->useSettingsCache) 2750 2749 { 2751 2750 d->settingsCacheLock.lock(); … … 2753 2752 d->settingsCacheLock.unlock(); 2754 2753 } 2755 2754 2755 if (!found) 2756 value = d->m_settings->GetSetting(key, defaultval); 2757 2756 2758 return value; 2757 2759 } 2758 2760