Commit a7682276 authored by Clinton Rogers's avatar Clinton Rogers

This addresses ticket #3004 by checking to see whether we're getting a close...

This addresses ticket #3004 by checking to see whether we're getting a close or delete event back from the dialog box.  If so, we treat this as cancel and stay on the current photo, 
since the user didn't yet decide whether to keep or revert their edits.
parent 807ccf1f
......@@ -398,8 +398,10 @@ public class DirectPhotoPage : EditingHostPage {
get_photo().get_file_format());
else
on_save_as();
} else if (response == Gtk.ResponseType.CANCEL)
} else if ((response == Gtk.ResponseType.CANCEL) || (response == Gtk.ResponseType.DELETE_EVENT) ||
(response == Gtk.ResponseType.CLOSE)) {
return false;
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment