Merge lp:~niclasl/scratch/fix-1299240 into lp:~elementary-apps/scratch/scratch
Proposed by
Niclas Lockner
Status: | Merged |
---|---|
Approved by: | Mario Guerriero |
Approved revision: | 1276 |
Merged at revision: | 1281 |
Proposed branch: | lp:~niclasl/scratch/fix-1299240 |
Merge into: | lp:~elementary-apps/scratch/scratch |
Diff against target: |
59 lines (+11/-4) 1 file modified
src/Services/Document.vala (+11/-4) |
To merge this branch: | bzr merge lp:~niclasl/scratch/fix-1299240 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mario Guerriero (community) | Approve | ||
Review via email: mp+215059@code.launchpad.net |
Commit message
fixed bug #1299240
Description of the change
After a document has been opened from the files manager plugin, it is immediately saved due to the save call in the focus out callback. (After the doc is opened, the focus is back at the files manager plugin.)
Since the document's content is loaded asynchronously, the save action is performed before the content has been read from the file.
In this branch, the focus out callback only saves the document if it has been fully loaded.
To post a comment you must log in.
I've pushed two new commits to the branch. The fix is better now than when I requested the merge.