Merge lp:~shnatsel/scratch/save-on-close into lp:~elementary-apps/scratch/scratch

Proposed by Sergey "Shnatsel" Davidoff
Status: Merged
Approved by: Mario Guerriero
Approved revision: 1249
Merged at revision: 1260
Proposed branch: lp:~shnatsel/scratch/save-on-close
Merge into: lp:~elementary-apps/scratch/scratch
Diff against target: 12 lines (+2/-0)
1 file modified
src/Services/Document.vala (+2/-0)
To merge this branch: bzr merge lp:~shnatsel/scratch/save-on-close
Reviewer Review Type Date Requested Status
Mario Guerriero (community) Approve
Review via email: mp+207547@code.launchpad.net

Commit message

Explicitly save files on closing Scratch because there's not always a typing break before closing Scratch. Fixes bug #1282749

Description of the change

Explicitly save files on closing Scratch because there's not always a typing break before closing Scratch. Fixes bug #1282749

This branch was forked from trunk before the gee-0.8 conversion and should be buildable with gee 0.6 on its own. It will be converted to 0.8 when merged into trunk.

To post a comment you must log in.
Revision history for this message
Mario Guerriero (mefrio-g) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Services/Document.vala'
--- src/Services/Document.vala 2013-12-24 13:40:24 +0000
+++ src/Services/Document.vala 2014-02-20 20:04:06 +0000
@@ -218,6 +218,8 @@
218 }218 }
219219
220 if (file != null) {220 if (file != null) {
221 // Save the changes that were not saved during typing breaks
222 save ();
221 // Delete backup copy file223 // Delete backup copy file
222 delete_backup ();224 delete_backup ();
223 // Zeitgeist integration225 // Zeitgeist integration

Subscribers

People subscribed via source and target branches