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

[#3424] Fix GTK warnings in Local IP configuration

parent 4298b708
No related branches found
No related tags found
No related merge requests found
......@@ -1297,6 +1297,7 @@ void show_account_window (account_t * a) {
// Get current protocol for this account protocol
gchar *currentProtocol = "SIP";
if(protocolComboBox)
currentProtocol = (gchar *)gtk_combo_box_get_active_text(GTK_COMBO_BOX(protocolComboBox));
// Do not need advanced or security one for the IP2IP account
......@@ -1322,6 +1323,7 @@ void show_account_window (account_t * a) {
}
// Emit signal to hide advanced and security tabs in case of IAX
if(protocolComboBox)
g_signal_emit_by_name (GTK_WIDGET(protocolComboBox), "changed", NULL);
gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook) , 0);
......@@ -1332,7 +1334,11 @@ void show_account_window (account_t * a) {
response = gtk_dialog_run (GTK_DIALOG (dialog));
// Update protocol in case it changed
gchar *proto = (gchar *)gtk_combo_box_get_active_text(GTK_COMBO_BOX(protocolComboBox));
gchar *proto = NULL;
if(protocolComboBox)
proto = (gchar *) gtk_combo_box_get_active_text(GTK_COMBO_BOX(protocolComboBox));
else
proto = "SIP";
// If cancel button is pressed
if(response == GTK_RESPONSE_CANCEL) {
......@@ -1364,7 +1370,6 @@ void show_account_window (account_t * a) {
g_strdup((gchar *)gtk_entry_get_text(GTK_ENTRY(entryMailbox))));
}
if (proto && strcmp (proto, "SIP") == 0) {
if (g_strcasecmp (currentAccount->accountID, IP2IP) != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment