Merge lp:~giacky98/scratch/fix-1112710-not-saving-empty-files into lp:~elementary-apps/scratch/scratch

Proposed by Giacomo De Lazzari
Status: Merged
Approved by: Mario Guerriero
Approved revision: 996
Merged at revision: 1004
Proposed branch: lp:~giacky98/scratch/fix-1112710-not-saving-empty-files
Merge into: lp:~elementary-apps/scratch/scratch
Diff against target: 15 lines (+5/-0)
1 file modified
src/Widgets/Tab.vala (+5/-0)
To merge this branch: bzr merge lp:~giacky98/scratch/fix-1112710-not-saving-empty-files
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+150897@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Widgets/Tab.vala'
--- src/Widgets/Tab.vala 2013-02-12 19:57:43 +0000
+++ src/Widgets/Tab.vala 2013-02-27 20:07:24 +0000
@@ -139,6 +139,11 @@
139 try {139 try {
140140
141 document.filename = this.filename;141 document.filename = this.filename;
142
143 if (document.file.query_exists () == false) {
144 FileOutputStream file_out_stream = document.file.create (FileCreateFlags.NONE);
145 file_out_stream.close();
146 }
142 147
143 uint8[] data = text_view.buffer.text.data;148 uint8[] data = text_view.buffer.text.data;
144 string s;149 string s;

Subscribers

People subscribed via source and target branches