mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:31:03 +00:00
Check that application name really exists in userinfo dictionary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22415 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7d97327c27
commit
f39ba306a2
2 changed files with 12 additions and 2 deletions
|
@ -94,6 +94,7 @@ static id GSLaunched(NSNotification *notification, BOOL active)
|
|||
NSDictionary *info = [notification userInfo];
|
||||
NSString *mode = [notification name];
|
||||
NSMutableDictionary *file = nil;
|
||||
NSString *name;
|
||||
NSDictionary *apps = nil;
|
||||
BOOL modified = NO;
|
||||
|
||||
|
@ -159,9 +160,9 @@ static id GSLaunched(NSNotification *notification, BOOL active)
|
|||
RELEASE(apps);
|
||||
}
|
||||
|
||||
if (info != nil)
|
||||
if (info != nil
|
||||
&& (name = [info objectForKey: @"NSApplicationName"]) != nil)
|
||||
{
|
||||
NSString *name = [info objectForKey: @"NSApplicationName"];
|
||||
NSDictionary *oldInfo = [apps objectForKey: name];
|
||||
|
||||
if ([mode isEqualToString:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue