Commit 600031ed authored by Julie Stamp's avatar Julie Stamp Committed by ROOL
Browse files

Don't close save box when raising "To save drag..."

Detail:
The behaviour of Draw, Edit and Paint is for the save box to remain
open after reporting "To save, drag...", this commit changes SaveAs
to do the same.

Changed Germany and UK Res files so that all "Save" buttons
have local flag ticked, otherwise the box closes regardless of
wheather SaveInternal_CloseWhenFinished is used.
In events.c, event_action_button_save, when a filename without
path has been detected, clear the CloseWhenFinished flag, so that
the box remains open.

Admin:
The correct behaviour was observed in a Res file loaded with
ResTest.

Version 0.21. Tagged as 'SaveAs-0_21'
parent d6e1dafd
No preview for this file type
No preview for this file type
/* (0.20)
/* (0.21)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.20
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 18 Aug 2015
#define Module_MajorVersion_CMHG 0.21
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 10 Oct 2020
#define Module_MajorVersion "0.20"
#define Module_Version 20
#define Module_MajorVersion "0.21"
#define Module_Version 21
#define Module_MinorVersion ""
#define Module_Date "18 Aug 2015"
#define Module_Date "10 Oct 2020"
#define Module_ApplicationDate "18-Aug-15"
#define Module_ApplicationDate "10-Oct-20"
#define Module_ComponentName "SaveAs"
#define Module_ComponentPath "castle/RiscOS/Sources/Toolbox/SaveAs"
#define Module_FullVersion "0.20"
#define Module_HelpVersion "0.20 (18 Aug 2015)"
#define Module_LibraryVersionInfo "0:20"
#define Module_FullVersion "0.21"
#define Module_HelpVersion "0.21 (10 Oct 2020)"
#define Module_LibraryVersionInfo "0:21"
......@@ -817,8 +817,10 @@ _kernel_oserror *event_action_button_save (TaskDescriptor *t, IDBlock *id_block)
if ((e = _kernel_swi (Toolbox_ObjectMiscOp, &regs, &regs)) != NULL)
return e;
if (!strstr (filename,"."))
if (!strstr (filename,".")) {
internal->flags &= ~SaveAsInternal_CloseWhenFinished;
return make_error (SaveAs_NotFullPath,0);
}
if (internal->flags & SaveAsInternal_IncludeSelectionButton) {
......
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