Merge lp:~niclasl/scratch/fix-1079759 into lp:~elementary-apps/scratch/scratch

Proposed by Niclas Lockner
Status: Merged
Approved by: Victor Martinez
Approved revision: 1269
Merged at revision: 1273
Proposed branch: lp:~niclasl/scratch/fix-1079759
Merge into: lp:~elementary-apps/scratch/scratch
Diff against target: 11 lines (+1/-0)
1 file modified
src/Services/Document.vala (+1/-0)
To merge this branch: bzr merge lp:~niclasl/scratch/fix-1079759
Reviewer Review Type Date Requested Status
Victor Martinez (community) Approve
Review via email: mp+214459@code.launchpad.net

Commit message

Do not close the unsaved document when the response from the message dialog is a delete event. Fixes bug #1079759

Description of the change

Do not close the unsaved document when the response from the message dialog is a delete event.

To post a comment you must log in.
Revision history for this message
Victor Martinez (victored) wrote :

Great solution, thanks!

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 2014-03-20 16:17:08 +0000
3+++ src/Services/Document.vala 2014-04-06 23:33:54 +0000
4@@ -218,6 +218,7 @@
5 int response = dialog.run ();
6 switch (response) {
7 case Gtk.ResponseType.CANCEL:
8+ case Gtk.ResponseType.DELETE_EVENT:
9 ret_value = false;
10 break;
11 case Gtk.ResponseType.YES:

Subscribers

People subscribed via source and target branches