diff --git a/sflphone-client-gnome/src/mainwindow.c b/sflphone-client-gnome/src/mainwindow.c
index 6fe9cc025c0ea7e4bfd1e604762bf5982a26e5cb..597076303dabc17b65fd6bfccd5f736f9ac710f1 100644
--- a/sflphone-client-gnome/src/mainwindow.c
+++ b/sflphone-client-gnome/src/mainwindow.c
@@ -105,15 +105,10 @@ main_window_ask_quit ()
   response = gtk_dialog_run (GTK_DIALOG (dialog));
 
   gtk_widget_destroy (dialog);
-  if (response == GTK_RESPONSE_YES)
-    {
-      return TRUE;
-    }
-  else if (response == GTK_RESPONSE_NO)
-    {
-      return FALSE;
-    }
-  return TRUE;
+
+  return (response == GTK_RESPONSE_NO)? FALSE : TRUE ;
+
+
 }
 
 static gboolean