From 61032caad616fd0332f77b1368da11dfa79c76d1 Mon Sep 17 00:00:00 2001
From: Julien Bonjean <julien@bonjean.info>
Date: Wed, 15 Apr 2009 12:56:46 -0400
Subject: [PATCH] Fixed toolbar update warning

---
 sflphone-gtk/src/toolbar.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sflphone-gtk/src/toolbar.c b/sflphone-gtk/src/toolbar.c
index 85dca74623..1e6b6bc5d0 100644
--- a/sflphone-gtk/src/toolbar.c
+++ b/sflphone-gtk/src/toolbar.c
@@ -364,7 +364,10 @@ toolbar_update_buttons ()
                 gtk_widget_set_sensitive( GTK_WIDGET(recButton),        TRUE);
           break;
             default:
-              g_warning("Toolbar update - Should not happen!");
+              // Fix bug #1145
+              // Actually it could happen when sflphone_fill_account_list()
+              // call this function and no "call" is selected
+              // g_warning("Toolbar update - Should not happen!");
           break;
         }
     }
-- 
GitLab