mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 01:45:32 +00:00
Merge pull request #1605 from keymanapp/developer-crash-saving-keyboard-5835
[Developer] Crash when creating new touch layout in certain circumstances.
This commit is contained in:
commit
da8a523fe0
1 changed files with 6 additions and 0 deletions
|
|
@ -464,9 +464,15 @@ procedure TframeTouchLayoutBuilder.Save(const AFilename: string);
|
|||
var
|
||||
s: string;
|
||||
begin
|
||||
if (FFilename = '') and (AFilename <> '') then
|
||||
begin
|
||||
Load(AFilename, not FileExists(AFilename), False);
|
||||
end;
|
||||
|
||||
if not IsModified and FileExists(AFilename) then // I4047 // I4147
|
||||
Exit;
|
||||
s := GetLayoutJS;
|
||||
|
||||
if s = '' then
|
||||
Exit;
|
||||
FSavedLayoutJS := s;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue