From f0507ee761b5927a0adc081ea396857f6e94f720 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 14 Nov 2017 12:24:05 +0100 Subject: [PATCH] using property --- MacPass/MPDocumentWindowController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index f2bf9a58..463895be 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -466,7 +466,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword); Add all needed constraints an then remove it again, if it was hidden */ BOOL removeInspector = NO; - if(![inspectorView superview]) { + if(!inspectorView.superview) { [self.splitView addSubview:inspectorView]; removeInspector = YES; }