[anjuta] anjuta: bgo #637584 - Unable to load a project on anjuta command line



commit 691245feb9cdd8247a9647d93fa3ff1b2c7b04a9
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Tue Sep 13 22:22:30 2011 +0200

    anjuta: bgo #637584 - Unable to load a project on anjuta command line

 src/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 0212b63..a6fde37 100644
--- a/src/main.c
+++ b/src/main.c
@@ -134,7 +134,7 @@ main (int argc, char *argv[])
 	GFile** files = NULL;
 	gint n_files = 0;
 	gint status;
-	
+
 	context = g_option_context_new (_("- Integrated Development Environment"));
 #ifdef ENABLE_NLS
 	setlocale (LC_ALL, "");
@@ -180,10 +180,11 @@ main (int argc, char *argv[])
 
 	g_set_application_name (_("Anjuta"));
 	anjuta = anjuta_new ();
+	if (no_client) g_application_set_flags (G_APPLICATION (anjuta), G_APPLICATION_NON_UNIQUE);
 	g_application_register (G_APPLICATION (anjuta), NULL, NULL);
 
 	
-	if (g_application_get_is_remote (G_APPLICATION (anjuta)) && !no_client)
+	if (g_application_get_is_remote (G_APPLICATION (anjuta)))
 	{	
 		if (files)
 		{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]