1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 11:59:34 +00:00

Fixes a bug that would save a file with just the extension.

Bug occurred when closing the editor without saving an untitled form.
This commit is contained in:
FellippeHeitor 2020-11-02 16:55:58 -03:00
parent 63ad8efaf2
commit 5661656d78

View file

@ -2718,6 +2718,9 @@ SUB __UI_BeforeUnload
IF Answer = MsgBox_Cancel THEN IF Answer = MsgBox_Cancel THEN
__UI_UnloadSignal = False __UI_UnloadSignal = False
ELSEIF Answer = MsgBox_Yes THEN ELSEIF Answer = MsgBox_Yes THEN
IF ThisFileName$ = "" THEN
ThisFileName$ = "untitled"
END IF
SaveForm False, False SaveForm False, False
END IF END IF
END IF END IF