mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 19:22:25 +00:00
Fixed #4: OutlineViewController now calls the correct method to remove groups
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
|
||||
- (void)createGroup:(id)sender {
|
||||
KdbGroup *group = [self _clickedOrSelectedGroup];
|
||||
MPDocument *document = [[NSDocumentController sharedDocumentController] currentDocument];
|
||||
MPDocument *document = [[self windowController] document];
|
||||
if(!group) {
|
||||
group = document.root;
|
||||
}
|
||||
@@ -130,7 +130,7 @@
|
||||
return; // Entries are not allowed in root group
|
||||
}
|
||||
if(group) {
|
||||
MPDocument *document = [[NSDocumentController sharedDocumentController] currentDocument];
|
||||
MPDocument *document = [[self windowController] document];
|
||||
[document createEntry:group];
|
||||
// Notify the the entry view about changes
|
||||
}
|
||||
@@ -139,8 +139,8 @@
|
||||
- (void)deleteEntry:(id)sender {
|
||||
KdbGroup *group = [self _clickedOrSelectedGroup];
|
||||
if(group) {
|
||||
[group.parent removeGroup:group];
|
||||
[self.outlineView reloadData];
|
||||
MPDocument *document = [[self windowController] document];
|
||||
[document deleteGroup:group];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>AB9</string>
|
||||
<string>ABD</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
||||
Reference in New Issue
Block a user