From 77711fb586ae6946c0985050655c991cc9444c92 Mon Sep 17 00:00:00 2001
From: Simon Morlat <simon.morlat@linphone.org>
Date: Wed, 30 Mar 2011 20:50:22 +0200
Subject: [PATCH] Return false to shouldTerminate (MacOS) to allow quitting

---
 gtk/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gtk/main.c b/gtk/main.c
index df281a7996..a2641b65b4 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1455,6 +1455,8 @@ int main(int argc, char *argv[]){
 	GtkOSXApplication *theMacApp = (GtkOSXApplication*)g_object_new(GTK_TYPE_OSX_APPLICATION, NULL);
 	g_signal_connect(G_OBJECT(theMacApp),"NSApplicationDidBecomeActive",(GCallback)linphone_gtk_show_main_window,NULL);
 	g_signal_connect(G_OBJECT(theMacApp),"NSApplicationWillTerminate",(GCallback)gtk_main_quit,NULL);
+	/*never block termination:*/
+	g_signal_connect(G_OBJECT(theMacApp),"NSApplicationBlockTermination",(GCallback)gtk_false,NULL);
 #endif
 	
 	the_ui=linphone_gtk_create_window("main");
-- 
GitLab