mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 12:59:25 +00:00
Attachments on Kdb1 Entries are now supported. Saving not implemented. Attach/detach works.
This commit is contained in:
@@ -384,9 +384,9 @@ enum {
|
||||
- (IBAction)removeAttachment:(id)sender {
|
||||
MPDocument *document = [[self windowController] document];
|
||||
if(document.version == MPDatabaseVersion3) {
|
||||
// Handle entry
|
||||
[document removeAttachmentFromEntry:self.selectedEntry];
|
||||
}
|
||||
if(document.version == MPDatabaseVersion4) {
|
||||
else if(document.version == MPDatabaseVersion4) {
|
||||
Kdb4Entry *entry = (Kdb4Entry *)self.selectedEntry;
|
||||
BinaryRef *reference = entry.binaries[[sender tag]];
|
||||
[document removeAttachment:reference fromEntry:self.selectedEntry];
|
||||
|
||||
Reference in New Issue
Block a user