Commit 501ac48
committed
filediff: Handle save responses better in delete events (bgo#744081)
The "you have modified files" dialog offers a "Close without saving"
option, which returns a CLOSE response code instead of our usual OK.
This was being handled correctly in most places, but not when the tab
was being closed via a delete event. This patch fixes it so that the
check_save_modified() always returns either OK or CANCEL, since that's
really the only thing we need out of it.
This commit also removes a stray delete-event handler on a widget that
should never ever be loaded.1 parent a629753 commit 501ac48
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
886 | 889 | | |
887 | 890 | | |
888 | 891 | | |
| |||
0 commit comments