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
1=== modified file 'src/Services/Document.vala'
2--- src/Services/Document.vala 2013-12-24 13:40:24 +0000
3+++ src/Services/Document.vala 2014-02-20 20:04:06 +0000
4@@ -218,6 +218,8 @@
5 }
6
7 if (file != null) {
8+ // Save the changes that were not saved during typing breaks
9+ save ();
10 // Delete backup copy file
11 delete_backup ();
12 // Zeitgeist integration

Subscribers

People subscribed via source and target branches