mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
switched from selected to clicked row in copy actions
fixed refactoring but in clipboard clearing
This commit is contained in:
@@ -379,12 +379,11 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
|
||||
#pragma mark Actions
|
||||
|
||||
- (void)_copyEntryData:(id)sender {
|
||||
|
||||
NSInteger selectedRow = [self.entryTable selectedRow];
|
||||
if(selectedRow > [[self.entryArrayController arrangedObjects] count]) {
|
||||
NSInteger clickedRow = [self.entryTable clickedRow];
|
||||
if(clickedRow > [[self.entryArrayController arrangedObjects] count]) {
|
||||
return;
|
||||
}
|
||||
KdbEntry *selectedEntry = [self.entryArrayController arrangedObjects][selectedRow];
|
||||
KdbEntry *selectedEntry = [self.entryArrayController arrangedObjects][clickedRow];
|
||||
|
||||
if([sender respondsToSelector:@selector(tag)]) {
|
||||
MPCopyContentTypeTag contentTag = (MPCopyContentTypeTag)[sender tag];
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
- (void)_updateNotifications {
|
||||
if(self.clearPasteboardOnShutdown) {
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(clearContents) name:NSApplicationWillTerminateNotification object:nil];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_clearPasteboardContents) name:NSApplicationWillTerminateNotification object:nil];
|
||||
}
|
||||
else {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>37D</string>
|
||||
<string>37F</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
||||
Reference in New Issue
Block a user