From 284675e3f10ed7885c04f505ce68aa3725bb00e8 Mon Sep 17 00:00:00 2001 From: yangxx Date: Tue, 3 Feb 2004 20:33:13 +0000 Subject: [PATCH] git-svn-id: http://ltt.polymtl.ca/svn@474 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.34.1