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

@@ -41,7 +41,7 @@
}
[self.fileTypePopupButton setMenu:menu];
[self.infoTextField setHidden:YES];
[self _updateView];
[self updateView];
}
- (IBAction)setFileType:(id)sender {
@@ -59,11 +59,11 @@
- (void)setDocument:(MPDocument *)document {
if(_document != document) {
_document = document;
[self _updateView];
[self updateView];
}
}
- (void)_updateView {
- (void)updateView {
switch(self.document.versionForFileType) {
case KPKLegacyVersion:
[self.fileTypePopupButton selectItemAtIndex:1];