Skip to content
Snippets Groups Projects
Commit 725a4b9f authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2383] Fix Gtk-Critical when checking STUN

parent 7bc3ca77
No related branches found
No related tags found
No related merge requests found
......@@ -486,11 +486,12 @@ static set_published_addr_manually_cb(GtkWidget * widget, gpointer data UNUSED)
static use_stun_cb(GtkWidget * widget, gpointer data UNUSED)
{
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) {
DEBUG("Showing stun options");
DEBUG("Showing stun options, hiding Local/Published info");
gtk_widget_show(stunServerLabel);
gtk_widget_show(stunServerEntry);
gtk_widget_set_sensitive(sameAsLocalRadioButton, FALSE);
gtk_widget_set_sensitive(publishedAddrRadioButton, FALSE);
DEBUG("Problem occurs here");
gtk_widget_hide(publishedAddressLabel);
gtk_widget_hide(publishedPortLabel);
gtk_widget_hide(publishedAddressEntry);
......@@ -875,8 +876,6 @@ GtkWidget * create_advanced_tab(account_t **a)
gtk_widget_show_all(ret);
use_stun_cb (GTK_WIDGET (useStunCheckBox), NULL);
publishedAddressLabel = gtk_label_new_with_mnemonic (_("Published address"));
gtk_table_attach_defaults( GTK_TABLE(table), publishedAddressLabel, 0, 1, 5, 6);
gtk_misc_set_alignment(GTK_MISC (publishedAddressLabel), 0, 0.5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment