From 219e82c9e7089fe45ec5f3f117651d5b7fcd577e Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Mon, 23 May 2011 15:02:00 -0500 Subject: [PATCH] bgo#642929 - Don't infinite-loop in GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER If the user pressed Enter to confirm the file chooser while the filename entry was empty, then gtk_file_chooser_default_should_respond() would go back and forth between the cases for handling the filename entry and the file list. --- gtk/gtkfilechooserdefault.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 9c6c717739..0189838daa 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -8593,7 +8593,8 @@ gtk_file_chooser_default_should_respond (GtkFileChooserEmbed *chooser_embed) if (is_empty) { - if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE) + if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE + || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER) return FALSE; goto file_list;