diff --git a/MacPass/MPAppDelegate.m b/MacPass/MPAppDelegate.m index 02838738..0ab3fc3e 100644 --- a/MacPass/MPAppDelegate.m +++ b/MacPass/MPAppDelegate.m @@ -273,7 +273,22 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi if(isFileURL) { [documentController openDocumentWithContentsOfURL:documentUrl display:YES - completionHandler:^(NSDocument *document, BOOL documentWasAlreadyOpen, NSError *error) {}]; + completionHandler:^(NSDocument *document, BOOL documentWasAlreadyOpen, NSError *error) { + + if(error != nil){ + + NSAlert *alert = [[NSAlert alloc] init]; + [alert setMessageText: NSLocalizedString(@"FILE_OPEN_ERROR", nil)]; + [alert setInformativeText: [error localizedDescription]]; + [alert setAlertStyle:NSCriticalAlertStyle ]; + [alert runModal]; + } + + if(document == nil){ + [self _showWelcomeWindow]; + } + + }]; } return isFileURL; } diff --git a/MacPass/de.lproj/Localizable.strings b/MacPass/de.lproj/Localizable.strings index 4dfd036d..2f61edba 100644 Binary files a/MacPass/de.lproj/Localizable.strings and b/MacPass/de.lproj/Localizable.strings differ diff --git a/MacPass/en.lproj/Localizable.strings b/MacPass/en.lproj/Localizable.strings index b5d3ffbc..ff189fe2 100644 Binary files a/MacPass/en.lproj/Localizable.strings and b/MacPass/en.lproj/Localizable.strings differ diff --git a/MacPass/fr.lproj/Localizable.strings b/MacPass/fr.lproj/Localizable.strings index 32708e69..2540d1fc 100644 Binary files a/MacPass/fr.lproj/Localizable.strings and b/MacPass/fr.lproj/Localizable.strings differ diff --git a/MacPass/nl.lproj/Localizable.strings b/MacPass/nl.lproj/Localizable.strings index dd669248..9e9f2454 100644 Binary files a/MacPass/nl.lproj/Localizable.strings and b/MacPass/nl.lproj/Localizable.strings differ diff --git a/MacPass/zh-Hans.lproj/Localizable.strings b/MacPass/zh-Hans.lproj/Localizable.strings index 38735431..1f1bbe94 100644 Binary files a/MacPass/zh-Hans.lproj/Localizable.strings and b/MacPass/zh-Hans.lproj/Localizable.strings differ