Mercurial > pidgin
changeset 32704:b43b8b93ea28
Use a reasonable default in VV prefs if the account isn't created yet.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 29 Dec 2011 01:49:46 +0000 |
parents | d14a39e84ff1 |
children | ef4ffed09e49 |
files | pidgin/gtkaccount.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkaccount.c Thu Dec 29 01:46:39 2011 +0000 +++ b/pidgin/gtkaccount.c Thu Dec 29 01:49:46 2011 +0000 @@ -1205,8 +1205,12 @@ gtk_widget_show_all(dialog->voice_frame); } - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check), - purple_account_get_silence_suppression(dialog->account)); + if (dialog->account) { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check), + purple_account_get_silence_suppression(dialog->account)); + } else { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->suppression_check), FALSE); + } #endif }