summaryrefslogtreecommitdiffstats
path: root/gtk/src/queuehandler.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-09-08 09:08:43 -0700
committerJohn Stebbins <[email protected]>2016-09-08 09:10:56 -0700
commit0b33dd8bb12afc94ee0616859b268b28a35d4906 (patch)
tree67d808016ef798e8dc3d009f67458b806658b5db /gtk/src/queuehandler.c
parente9b2d291789edf2d08453c6554e1594aedfd495d (diff)
LinGui: fix some issues with reloading audio defaults
Reloading the audio defaults basically didn't work right. Some settings didn't get loaded, some got loaded and not displayed or displayed wrong.
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r--gtk/src/queuehandler.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index ffb9016fd..d8838ba74 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -634,10 +634,9 @@ add_to_queue_list(signal_user_data_t *ud, GhbValue *queueDict, GtkTreeIter *pite
asettings = ghb_array_get(jobAudioList, ii);
audio_encoder = ghb_settings_audio_encoder(asettings, "Encoder");
- double q = ghb_dict_get_double(asettings, "Quality");
- if (ghb_dict_get_bool(asettings, "QualityEnable") &&
- q != HB_INVALID_AUDIO_QUALITY)
+ if (ghb_audio_quality_enabled(asettings))
{
+ double q = ghb_dict_get_double(asettings, "Quality");
quality = ghb_format_quality(_("Quality: "), audio_encoder->codec, q);
}
else