From 76da8c6c0003c27ea93b55833ced590e25a1f4b8 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 19 Oct 2007 21:49:18 +0000 Subject: [PATCH] fix crash in the gtk client if the user hit `create' in the `create torrent' dialog without specifying a file. --- gtk/makemeta-ui.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/makemeta-ui.c b/gtk/makemeta-ui.c index e20fc2824..2461585ca 100644 --- a/gtk/makemeta-ui.c +++ b/gtk/makemeta-ui.c @@ -129,6 +129,9 @@ response_cb( GtkDialog* d, int response, gpointer user_data ) return; } + if( ui->builder == NULL ) + return; + w = gtk_dialog_new_with_buttons( _("Making Torrent..."), GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT,