Fixed decryption error handling

This commit is contained in:
michael starke
2013-05-29 14:52:08 +02:00
parent fb17bc0a00
commit b969baa7fb
7 changed files with 365 additions and 123 deletions

View File

@@ -46,6 +46,10 @@
return self.passwordTextField;
}
- (void)requestPassword {
[self _reset];
}
- (IBAction)_decrypt:(id)sender {
MPDocumentWindowController *windowController = (MPDocumentWindowController *)[[[self view] window] windowController];
MPDocument *document = [windowController document];
@@ -54,9 +58,10 @@
if(!isOk) {
[self _showError];
}
else {
[windowController showEntries];
}
}
[self _reset];
[windowController showEntries];
}
- (void)_reset {