git-svn-id: http://ltt.polymtl.ca/svn@474 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 3 Feb 2004 20:33:13 +0000 (20:33 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 3 Feb 2004 20:33:13 +0000 (20:33 +0000)
ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c

index 76cd18c208d98ad53479cdf36365ca42349e893e..084d56e56b651f54152f72eedb681725fc51b066 100644 (file)
@@ -421,6 +421,10 @@ void add_trace(GtkWidget * widget, gpointer user_data)
     case GTK_RESPONSE_ACCEPT:
     case GTK_RESPONSE_OK:
       dir = gtk_dir_selection_get_dir (file_selector);
+      if(!dir || strlen(dir) ==0){
+       gtk_widget_destroy((GtkWidget*)file_selector);
+       break;
+      }
       trace = ltt_trace_open(dir);
       if(trace == NULL) g_critical("cannot open trace %s", dir);
       trace_v = lttv_trace_new(trace);
This page took 0.026063 seconds and 4 git commands to generate.