mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 797790 - Set the default folder for Associations
When there is no association set, if the file option is chosen set the default folder for the file chooser to that of the path head preference.
This commit is contained in:
parent
240cbbe8e8
commit
46655996b6
@ -299,11 +299,15 @@ gnc_assoc_get_uri_dialog (GtkWindow *parent, const gchar *title, const gchar *ur
|
||||
}
|
||||
|
||||
// make sure we start with the right dialog
|
||||
if (have_uri && !uri_is_file) // location
|
||||
setup_location_dialog (builder, button_loc, uri);
|
||||
|
||||
if (have_uri && uri_is_file) // file
|
||||
setup_file_dialog (builder, fcb, path_head, uri, scheme);
|
||||
if (have_uri)
|
||||
{
|
||||
if (uri_is_file) // file
|
||||
setup_file_dialog (builder, fcb, path_head, uri, scheme);
|
||||
else // location
|
||||
setup_location_dialog (builder, button_loc, uri);
|
||||
}
|
||||
else
|
||||
gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER(fcb), path_head);
|
||||
|
||||
g_free (scheme);
|
||||
g_object_unref (G_OBJECT(builder));
|
||||
|
Loading…
Reference in New Issue
Block a user