# HG changeset patch # User Torsten Lilge # Date 1654026111 -7200 # Node ID c55c6b91447f40df0f3bab1f8cfb66f0fb369e46 # Parent 6d9ff512a08af3be0c65b2621ec708dc72628cb4 fix error on saving an editor file * file-editor-tab.cc (do_save_file): The use of QSaveFile in the default branch only allows to open a file in write only mode which was overwritten by previous merge from stable branch diff -r 6d9ff512a08a -r c55c6b91447f libgui/src/m-editor/file-editor-tab.cc --- a/libgui/src/m-editor/file-editor-tab.cc Mon May 30 18:24:27 2022 -0700 +++ b/libgui/src/m-editor/file-editor-tab.cc Tue May 31 21:41:51 2022 +0200 @@ -2218,7 +2218,7 @@ // open the file for writing (use QIODevice::ReadWrite for avoiding // truncating the previous file contents) - if (! file.open (QIODevice::ReadWrite)) + if (! file.open (QIODevice::WriteOnly)) { // Unsuccessful, begin watching file again if it was being // watched previously.