[gnome-documents] pdf-loader: don't save the cache when there has been an error



commit 191103278cb855234c847941359d814a162dccde
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Aug 31 01:39:06 2011 -0400

    pdf-loader: don't save the cache when there has been an error
    
    E.g. when the operation has been cancelled.

 src/lib/gd-pdf-loader.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/lib/gd-pdf-loader.c b/src/lib/gd-pdf-loader.c
index 0fb26c6..3f85c0e 100644
--- a/src/lib/gd-pdf-loader.c
+++ b/src/lib/gd-pdf-loader.c
@@ -158,6 +158,7 @@ pdf_load_job_complete_error (PdfLoadJob *job,
     g_simple_async_result_take_error (job->result, error);
     g_simple_async_result_complete_in_idle (job->result);
 
+    job->unlink_cache = TRUE;
     pdf_load_job_free (job);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]