fixed #396. Perform autotype on selected entries works again

This commit is contained in:
michael starke
2015-12-14 20:43:00 +01:00
parent c7a6ad19dc
commit 976e96d873
3 changed files with 2 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
github "mstarke/HNHUi" "1.0.1" github "mstarke/HNHUi" "1.0.1"
github "mstarke/KeePassKit" "1.0" github "mstarke/KeePassKit" "1.0.1"
github "sparkle-project/Sparkle" "1.12.0b1" github "sparkle-project/Sparkle" "1.12.0b1"

View File

@@ -30,7 +30,6 @@ APPKIT_EXTERN NSString *const MPDidChangeStoredKeyFilesSettings;
@property (strong) IBOutlet NSWindow *passwordCreatorWindow; @property (strong) IBOutlet NSWindow *passwordCreatorWindow;
@property (strong) IBOutlet NSWindow *welcomeWindow; @property (strong) IBOutlet NSWindow *welcomeWindow;
@property (strong) MPAutotypeDaemon *autotypeDaemon;
@property (weak) IBOutlet NSMenuItem *saveMenuItem; @property (weak) IBOutlet NSMenuItem *saveMenuItem;
@property (nonatomic, assign) BOOL isAllowedToStoreKeyFile; @property (nonatomic, assign) BOOL isAllowedToStoreKeyFile;

View File

@@ -379,8 +379,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
- (void)performAutotypeForEntry:(id)sender { - (void)performAutotypeForEntry:(id)sender {
id<MPTargetNodeResolving> entryResolver = [NSApp targetForAction:@selector(currentTargetEntry)]; id<MPTargetNodeResolving> entryResolver = [NSApp targetForAction:@selector(currentTargetEntry)];
KPKEntry *targetEntry = [entryResolver currentTargetEntry]; KPKEntry *targetEntry = [entryResolver currentTargetEntry];
MPAutotypeDaemon *autotyped = ((MPAppDelegate *)[NSApplication sharedApplication].delegate).autotypeDaemon; [[MPAutotypeDaemon defaultDaemon] performAutotypeForEntry:targetEntry];
[autotyped performAutotypeForEntry:targetEntry];
} }
- (void)showInspector:(id)sender { - (void)showInspector:(id)sender {