BrowserWindow.vala
authorKH Lau <khlau@roojs.com>
Thu, 8 Mar 2018 08:45:08 +0000 (16:45 +0800)
committerKH Lau <khlau@roojs.com>
Thu, 8 Mar 2018 08:45:08 +0000 (16:45 +0800)
BrowserWindow.vala

index 84e3dd0..6c54f19 100644 (file)
@@ -424,7 +424,9 @@ public class BrowserWindow : Object
             print("deleting tmp file %s\n",_this.cookie_file);
             File file = File.new_for_path (_this.cookie_file);
                 try {
-                         file.delete ();
+                    if (file.query_exists () == true) {
+                        file.delete ();                     
+                    }
                 } catch (Error e) {
                          stdout.printf ("Error: %s\n", e.message);
                 }