Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index dc8ac94..4c3fcf2 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1277,7 +1277,7 @@ ev_window_clear_temp_file (EvWindow *ev_window)
file = g_file_new_for_uri (ev_window->priv->uri);
tempdir = g_file_new_for_path (g_get_tmp_dir ());
- if (g_file_contains_file (tempdir, file)) {
+ if (g_file_has_prefix (file, tempdir)) {
g_file_delete (file, NULL, NULL);
}