Make attachments dialogue set undo points. Updates #1216.

Originally committed to SVN as r4590.
This commit is contained in:
Niels Martin Hansen 2010-06-24 06:13:51 +00:00
parent 7521d2d29d
commit 3b1189a8b2

View file

@ -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();
}