Author: rmottola
Date: Mon Apr 18 01:00:13 2016
New Revision: 39676
URL: http://svn.gna.org/viewcvs/gnustep?rev=39676&view=rev
Log:
handle bundles/packages
Modified:
apps/gworkspace/trunk/FSNode/FSNodeRepIcons.m
Modified: apps/gworkspace/trunk/FSNode/FSNodeRepIcons.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/FSNode/FSNodeRepIcons.m?rev=39676&r1=39675&r2=39676&view=diff
==============================================================================
--- apps/gworkspace/trunk/FSNode/FSNodeRepIcons.m (original)
+++ apps/gworkspace/trunk/FSNode/FSNodeRepIcons.m Mon Apr 18 01:00:13 2016
@@ -154,7 +154,12 @@
/* we may have more than one folder icon */
key = nodepath;
}
- }
+ }
+ else
+ {
+ /* a bundle */
+ key = nodepath;
+ }
if (key != nil)
{
@@ -162,11 +167,12 @@
if (icon == nil)
{
- if (baseIcon == nil)
- {
- baseIcon = [ws iconForFile: nodepath];
- }
-
+ baseIcon = [ws iconForFile: nodepath];
+
+ if (baseIcon == nil)
+ {
+ NSLog(@"no WS icon for %@", nodepath);
+ }
if ([node isLink])
{
NSImage *linkIcon;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs