Skip to content
Snippets Groups Projects
Commit a676b472 authored by pierre-luc's avatar pierre-luc
Browse files

[#811] Gtk ui was not presenting the right information about zrtp for

registered types of accounts. ZRTP key exchange number was not in
accordance with the index from the daemon.
parent 508d0657
No related branches found
No related tags found
No related merge requests found
......@@ -570,13 +570,13 @@ GtkWidget * create_advanced_tab(account_t **a)
advancedZrtpButton = gtk_button_new_with_label(_("Advanced options"));
g_signal_connect(G_OBJECT(advancedZrtpButton), "clicked", G_CALLBACK(show_advanced_zrtp_options_cb), currentAccount->properties);
if (g_strcasecmp(curSRTPEnabled, "FALSE") == 0)
if (g_strcmp0(curSRTPEnabled, "FALSE") == 0)
{
gtk_combo_box_set_active(GTK_COMBO_BOX(keyExchangeCombo), 1);
gtk_widget_set_sensitive(GTK_WIDGET(advancedZrtpButton), FALSE);
} else {
if (strcmp(curKeyExchange, "0") == 0) {
if (strcmp(curKeyExchange, "1") == 0) {
gtk_combo_box_set_active(GTK_COMBO_BOX(keyExchangeCombo),0);
} else {
gtk_combo_box_set_active(GTK_COMBO_BOX(keyExchangeCombo), 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment