mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 12:39:29 +00:00
Fixed more issues with sheets being displayed when database is locked
This commit is contained in:
@@ -216,7 +216,7 @@ NSString *const MPHelpURLKey = @"MPHelpURL";
|
||||
|
||||
- (void)lockAllDocuments {
|
||||
for(NSDocument *document in ((NSDocumentController *)[NSDocumentController sharedDocumentController]).documents) {
|
||||
for(id windowController in document.windowControllers) {
|
||||
for(id windowController in [document.windowControllers reverseObjectEnumerator]) {
|
||||
if([windowController respondsToSelector:@selector(lock:)]) {
|
||||
[windowController lock:self];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user