From: yangxx Date: Tue, 3 Feb 2004 20:33:13 +0000 (+0000) Subject: git-svn-id: http://ltt.polymtl.ca/svn@474 04897980-b3bd-0310-b5e0-8ef037075253 X-Git-Tag: v0.12.20~3015 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=284675e3f10ed7885c04f505ce68aa3725bb00e8;p=lttv.git git-svn-id: ltt.polymtl.ca/svn@474 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c b/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c index 76cd18c2..084d56e5 100644 --- a/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c @@ -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);