Make attachments dialogue set undo points. Updates #1216.
Originally committed to SVN as r4590.
This commit is contained in:
parent
7521d2d29d
commit
3b1189a8b2
1 changed files with 6 additions and 0 deletions
|
@ -176,6 +176,8 @@ void DialogAttachments::OnAttachFont(wxCommandEvent &event) {
|
|||
AssFile::top->InsertAttachment(newAttach);
|
||||
}
|
||||
|
||||
AssFile::top->FlagAsModified(_("attach font file"));
|
||||
|
||||
// Update
|
||||
UpdateList();
|
||||
}
|
||||
|
@ -212,6 +214,8 @@ void DialogAttachments::OnAttachGraphics(wxCommandEvent &event) {
|
|||
AssFile::top->InsertAttachment(newAttach);
|
||||
}
|
||||
|
||||
AssFile::top->FlagAsModified(_("attach graphics file"));
|
||||
|
||||
// Update
|
||||
UpdateList();
|
||||
}
|
||||
|
@ -265,6 +269,8 @@ void DialogAttachments::OnDelete(wxCommandEvent &event) {
|
|||
i = listView->GetNextSelected(i);
|
||||
}
|
||||
|
||||
AssFile::top->FlagAsModified(_("remove attachment"));
|
||||
|
||||
// Update list
|
||||
UpdateList();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue