GNOME Bugzilla – Bug 141661
filechooser accepts directory when in save mode
Last modified: 2011-02-04 16:16:49 UTC
Steps to reproduce: 0) Create a directory, "A" 1) Start testfilechooser 2) Set the filechooser to SAVE mode 3) Type in "A" 4) Press Enter to dismiss the filechooser Actual results: The filechooser accepts the typed filename and returns it from gtk_file_chooser_get_uri(). Expected results: Since the docs say: "GTK_FILE_CHOOSER_ACTION_SAVE Indicates save mode. The file chooser will let the user pick an existing file, or type in a new filename.", I'd expect the filechooser NOT to accept the user input, since it refers to an existing /directory/. The programmer shouldn't have to check if the returned filename is an existing directory.
This would need a check in gtkfilechooserdefault.c:check_save_entry().
Mass changing gtk+ bugs with target milestone of 2.4.2 to target 2.4.4, as Matthias said he was trying to do himself on IRC and was asking for help with. If you see this message, it means I was successful at fixing the borken-ness in bugzilla :) Sorry for the spam; just query on this message and delete all emails you get with this message, since there will probably be a lot.
Fixed on both HEAD and gtk-2-4 branches.