fixed a segfault due to return void instead of nil- fix by Sergei Golovin

This commit is contained in:
Riccardo Mottola 2021-02-04 18:29:54 +01:00
parent 263106b117
commit 24ede72e4a

View file

@ -201,7 +201,7 @@ NSString *PCEditorDidResignActiveNotification =
/* we don't have in-window editors for any bundles right now */
if (!windowed)
return;
return nil;
/* Check for bundles and if possible let them be opened by Workspace but only if windowed */
app = [[NSWorkspace sharedWorkspace] getBestAppInRole:@"Editor" forExtension:[fileName pathExtension]];