From a3e038ee51f0a2112501f78ee79813771222ba2b Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Tue, 13 May 2008 09:29:35 -0400
Subject: [PATCH] Switch to current_calls tab on incoming call

---
 sflphone-gtk/src/actions.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sflphone-gtk/src/actions.c b/sflphone-gtk/src/actions.c
index 7bff3f8674..88a758bc5c 100644
--- a/sflphone-gtk/src/actions.c
+++ b/sflphone-gtk/src/actions.c
@@ -388,8 +388,8 @@ sflphone_incoming_call (call_t * c)
 	call_list_add ( current_calls, c );
 	call_list_add( history, c );
 	update_call_tree_add( current_calls , c );
-	//update_call_tree_add( history , c );
 	update_menus();
+	if( active_calltree == history )  switch_tab();
 }
 
 void
@@ -497,10 +497,7 @@ sflphone_keypad( guint keyval, gchar * key)
 		switch(c->state) 
 		{
 			case CALL_STATE_DIALING: // Currently dialing => edit number
-				//dbus_play_dtmf(key);
 				process_dialing(c, keyval, key);
-				if( active_calltree == history )
-				  switch_tab();
 				break;
 			case CALL_STATE_CURRENT:
 				switch (keyval)
-- 
GitLab