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->InsertAttachment(newAttach);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AssFile::top->FlagAsModified(_("attach font file"));
|
||||||
|
|
||||||
// Update
|
// Update
|
||||||
UpdateList();
|
UpdateList();
|
||||||
}
|
}
|
||||||
|
@ -212,6 +214,8 @@ void DialogAttachments::OnAttachGraphics(wxCommandEvent &event) {
|
||||||
AssFile::top->InsertAttachment(newAttach);
|
AssFile::top->InsertAttachment(newAttach);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AssFile::top->FlagAsModified(_("attach graphics file"));
|
||||||
|
|
||||||
// Update
|
// Update
|
||||||
UpdateList();
|
UpdateList();
|
||||||
}
|
}
|
||||||
|
@ -265,6 +269,8 @@ void DialogAttachments::OnDelete(wxCommandEvent &event) {
|
||||||
i = listView->GetNextSelected(i);
|
i = listView->GetNextSelected(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AssFile::top->FlagAsModified(_("remove attachment"));
|
||||||
|
|
||||||
// Update list
|
// Update list
|
||||||
UpdateList();
|
UpdateList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue