Changeset 5355

Show
Ignore:
Timestamp:
03/11/08 13:23:15 (4 months ago)
Author:
morris
Message:

Don't set Finder comment when clearing to avoid warning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/trunk/wired/files.c

    r5333 r5355  
    12681268        realpath = wi_string_by_resolving_aliases_in_path(wd_files_real_path(path)); 
    12691269 
    1270         if(!wi_file_set_finder_comment(realpath, comment)) 
    1271                 wi_log_info(WI_STR("Could not set Finder comment: %m")); 
     1270        if(wi_file_exists(realpath, NULL)) { 
     1271                if(!wi_file_set_finder_comment(realpath, comment)) 
     1272                        wi_log_info(WI_STR("Could not set Finder comment: %m")); 
     1273        } 
    12721274#endif 
    12731275}