[glade/modern-ui: 28/32] Do not open a new project by default



commit e5c11ffbf243f0b1244832fcd577a2b44780da8c
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Sat Jul 8 21:47:16 2017 -0300

    Do not open a new project by default

 src/main.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 3646de0..555b437 100644
--- a/src/main.c
+++ b/src/main.c
@@ -74,7 +74,6 @@ main (int argc, char *argv[])
   GOptionContext *option_context;
   GOptionGroup *option_group;
   GError *error = NULL;
-  gboolean opened_project = FALSE;
   GTimer *timer = NULL;
 
 #ifdef ENABLE_NLS
@@ -175,10 +174,7 @@ main (int argc, char *argv[])
           if (verbose) g_timer_start (timer);
           
           if (g_file_test (files[i], G_FILE_TEST_EXISTS) != FALSE)
-           {
-             if (glade_window_open_project (window, files[i]))
-               opened_project = TRUE;
-           }
+           glade_window_open_project (window, files[i]);
           else
             g_warning (_("Unable to open '%s', the file does not exist.\n"),
                        files[i]);
@@ -194,9 +190,6 @@ main (int argc, char *argv[])
     }
 
   if (verbose) g_timer_destroy (timer);
-  
-  if (!opened_project)
-    glade_window_new_project (window);
 
   glade_window_registration_notify_user (window);
   


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