Updating branch refs/heads/master to 288473e9c4ba15878205602fb2e3443ba3ce414d (commit) from 3143e8d08ca0a007a4cebddd35179e4109674cf3 (commit)
commit 288473e9c4ba15878205602fb2e3443ba3ce414d Author: Stephan Arts <step...@xfce.org> Date: Mon Oct 17 15:57:31 2011 +0200 Fix error with current-uri src/main_window.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main_window.c b/src/main_window.c index 2b99f1f..83c5af2 100644 --- a/src/main_window.c +++ b/src/main_window.c @@ -2571,7 +2571,12 @@ cb_rstto_main_window_open_image (GtkWidget *widget, RsttoMainWindow *window) gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), FALSE); if (g_value_get_string (¤t_uri_val)) - gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dialog), g_value_get_string (¤t_uri_val)); + { + if (strlen (g_value_get_string (¤t_uri_val)) > 0) + { + gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dialog), g_value_get_string (¤t_uri_val)); + } + } gtk_file_filter_add_pixbuf_formats (filter); gtk_file_filter_set_name (filter, _("Images")); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits