[geary/wip/problem-report-logs: 15/23] Ensure Inspector overwrites existing files on save



commit 7d1b8c5216b6f3d890af7b03b4f727aacf1818b2
Author: Michael Gratton <mike vee net>
Date:   Thu Jul 4 13:31:35 2019 +1000

    Ensure Inspector overwrites existing files on save

 src/client/components/components-inspector.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/client/components/components-inspector.vala b/src/client/components/components-inspector.vala
index b8102295..1a3ac94d 100644
--- a/src/client/components/components-inspector.vala
+++ b/src/client/components/components-inspector.vala
@@ -123,7 +123,9 @@ public class Components.Inspector : Gtk.ApplicationWindow {
                             GLib.Cancellable? cancellable)
         throws GLib.Error {
         GLib.File dest = GLib.File.new_for_path(path);
-        GLib.FileIOStream dest_io = yield dest.create_readwrite_async(
+        GLib.FileIOStream dest_io = yield dest.replace_readwrite_async(
+            null,
+            false,
             GLib.FileCreateFlags.NONE,
             GLib.Priority.DEFAULT,
             cancellable


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