Commit f901908
committed
filediff: Reset chooser filename for cancelled selection (bgo#741928)
If the user has an unsaved file and selects a new file in the chooser,
we prompt for saving the existing file. If that dialog is cancelled,
we're left in an inconsistent state where the file chooser thinks
we've got one file, and the buffer has another.
This commit adds a slightly bodgy workaround for this situation, just
manually checking whether the action was cancelled. It would be
possible to do something more serious by performing our checks before
the chooser dialog closes, but that would be a lot more work for little
gain.1 parent 936b6ab commit f901908
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
| 1742 | + | |
1742 | 1743 | | |
1743 | | - | |
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
1747 | 1751 | | |
1748 | 1752 | | |
1749 | 1753 | | |
| |||
0 commit comments