[Xfce4-commits] <ristretto:master> Show error-dialog and do not open directory if file does not exist.
Stephan Arts
noreply at xfce.org
Mon Nov 14 08:30:01 CET 2011
Updating branch refs/heads/master
to d25c6d6aefe51ab13fdbf230bbd3d606b2a60b86 (commit)
from bf8aacf94a5e42c9a89efada1bb151a191719ea1 (commit)
commit d25c6d6aefe51ab13fdbf230bbd3d606b2a60b86
Author: Stephan Arts <stephan at xfce.org>
Date: Mon Nov 14 08:27:47 2011 +0100
Show error-dialog and do not open directory if file does not exist.
src/main_window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index e95f37d..16e0dd2 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -2624,7 +2624,8 @@ cb_rstto_main_window_open_recent(GtkRecentChooser *chooser, RsttoMainWindow *win
GFile *p_file;
RsttoFile *rfile;
- if (error == NULL)
+ if ((error == NULL) &&
+ (g_file_query_exists (file, NULL)))
{
rfile = rstto_file_new (file);
g_object_ref (rfile);
@@ -2637,7 +2638,6 @@ cb_rstto_main_window_open_recent(GtkRecentChooser *chooser, RsttoMainWindow *win
rstto_image_list_iter_find_file (
window->priv->iter,
rfile );
-
}
else
{
More information about the Xfce4-commits
mailing list