Re-enabled password request before saving a database that has no password and key

Stripped logging code
Fixed issue with save panel not being updated correctly when panel is just reshown
This commit is contained in:
michael starke
2013-09-04 02:15:22 +02:00
parent 06862e7a42
commit 4a8b1207c5
9 changed files with 86 additions and 12 deletions

View File

@@ -11,6 +11,17 @@
@class MPDocument;
@class HNHRoundedSecureTextField;
@protocol MPPasswordEditWindowDelegate <NSObject>
@optional
/**
* Get's called on dismissing the password editor.
* @param changedPasswordOrKey YES if the password and/or key was saved (not necessairly changed!);
*/
- (void)didFinishPasswordEditing:(BOOL)changedPasswordOrKey;
@end
@interface MPPasswordEditWindowController : MPSheetWindowController <NSTextFieldDelegate>
@property (weak) IBOutlet HNHRoundedSecureTextField *passwordTextField;
@@ -19,6 +30,9 @@
@property (weak) IBOutlet NSButton *togglePasswordButton;
@property (weak) IBOutlet NSTextField *errorTextField;
@property (weak) IBOutlet NSButton *changePasswordButton;
@property (nonatomic,assign) BOOL allowsEmptyPasswordOrKey;
@property (weak) id<MPPasswordEditWindowDelegate> delegate;
/**
* Dedicated initializer for the Windowcontroller