Commit f59d8b6f authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Fix file type not being applied when copying image files

Detail:
  c/memmanage - An earlier fix to prevent directory filetypes being applied to image files had the unintended side-effect of stopping image file types being applied to anything other than an existing image file.
  Check has now been revised to only limit the application of directory types to image files; there's no need to worry about image file types being applied to directories, as the filer won't let you copy a (image) file over a directory in the first place.
Admin:
  Tested on Raspberry Pi with high processor vectors


Version 0.58. Tagged as 'FilerAct-0_58'
parent 2c5312d1
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "0.57"
Module_Version SETA 57
Module_MajorVersion SETS "0.58"
Module_Version SETA 58
Module_MinorVersion SETS ""
Module_Date SETS "15 Jul 2012"
Module_ApplicationDate SETS "15-Jul-12"
Module_Date SETS "16 Aug 2012"
Module_ApplicationDate SETS "16-Aug-12"
Module_ComponentName SETS "FilerAct"
Module_ComponentPath SETS "castle/RiscOS/Sources/Desktop/FilerAct"
Module_FullVersion SETS "0.57"
Module_HelpVersion SETS "0.57 (15 Jul 2012)"
Module_FullVersion SETS "0.58"
Module_HelpVersion SETS "0.58 (16 Aug 2012)"
END
/* (0.57)
/* (0.58)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.57
#define Module_MajorVersion_CMHG 0.58
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 15 Jul 2012
#define Module_Date_CMHG 16 Aug 2012
#define Module_MajorVersion "0.57"
#define Module_Version 57
#define Module_MajorVersion "0.58"
#define Module_Version 58
#define Module_MinorVersion ""
#define Module_Date "15 Jul 2012"
#define Module_Date "16 Aug 2012"
#define Module_ApplicationDate "15-Jul-12"
#define Module_ApplicationDate "16-Aug-12"
#define Module_ComponentName "FilerAct"
#define Module_ComponentPath "castle/RiscOS/Sources/Desktop/FilerAct"
#define Module_FullVersion "0.57"
#define Module_HelpVersion "0.57 (15 Jul 2012)"
#define Module_LibraryVersionInfo "0:57"
#define Module_FullVersion "0.58"
#define Module_HelpVersion "0.58 (16 Aug 2012)"
#define Module_LibraryVersionInfo "0:58"
......@@ -388,9 +388,9 @@ static os_error *write_catalogue_information( char *filename, int objecttype, in
{
os_filestr fileplace;
if (objecttype & object_directory)
if (objecttype == object_directory)
{
/* Check if we're copying an image file's information from a directory or vice versa */
/* Check if we're overwriting an image file's information from a directory */
fileplace.action = OSFile_ReadNoPath;
fileplace.name = filename;
os_error *err = os_file( &fileplace );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment