diff options
author | fredrossperry <fredrossperry@gmail.com> | 2015-02-18 18:33:19 -0800 |
---|---|---|
committer | Joseph Heenan <joseph@emobix.co.uk> | 2015-02-25 16:06:00 +0000 |
commit | 95852acd089b4640db273890258089f9ac4972d5 (patch) | |
tree | 30a810ecf35e7d50f5496f75b98480e06789884f /platform/ios/Classes/MuLibraryController.m | |
parent | 09a165e4f469afe4ad4852211be73006dd905156 (diff) | |
download | mupdf-95852acd089b4640db273890258089f9ac4972d5.tar.xz |
iOS: conform to recent mupdf API changes.
Diffstat (limited to 'platform/ios/Classes/MuLibraryController.m')
-rw-r--r-- | platform/ios/Classes/MuLibraryController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/Classes/MuLibraryController.m b/platform/ios/Classes/MuLibraryController.m index 529253e2..c57fc206 100644 --- a/platform/ios/Classes/MuLibraryController.m +++ b/platform/ios/Classes/MuLibraryController.m @@ -212,7 +212,7 @@ static NSString *moveOutOfInbox(NSString *docpath) return; } - if (fz_needs_password(doc->doc)) + if (fz_needs_password(ctx, doc->doc)) [self askForPassword: @"'%@' needs a password:"]; else [self onPasswordOkay]; @@ -236,7 +236,7 @@ static NSString *moveOutOfInbox(NSString *docpath) char *password = (char*) [[[alertView textFieldAtIndex: 0] text] UTF8String]; [alertView dismissWithClickedButtonIndex: buttonIndex animated: TRUE]; if (buttonIndex == 1) { - if (fz_authenticate_password(doc->doc, password)) + if (fz_authenticate_password(ctx, doc->doc, password)) [self onPasswordOkay]; else [self askForPassword: @"Wrong password for '%@'. Try again:"]; |