mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 16:29:23 +00:00
Double click on first item in databases in welcome window does not open the file. (Fixes #893)
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
- (IBAction)openRecentURL:(id)sender {
|
||||
NSInteger clicked = self.tableView.clickedRow;
|
||||
NSArray <NSURL *> *recentURLS = NSDocumentController.sharedDocumentController.recentDocumentURLs;
|
||||
if(clicked > 0 && clicked < recentURLS.count) {
|
||||
if(clicked > -1 && clicked < recentURLS.count) {
|
||||
[NSDocumentController.sharedDocumentController openDocumentWithContentsOfURL:recentURLS[clicked]
|
||||
display:YES
|
||||
completionHandler:^(NSDocument * _Nullable document, BOOL documentWasAlreadyOpen, NSError * _Nullable error) {}];
|
||||
|
||||
Reference in New Issue
Block a user