mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 03:49:56 +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:
parent
63ad8efaf2
commit
5661656d78
1 changed files with 3 additions and 0 deletions
|
@ -2718,6 +2718,9 @@ SUB __UI_BeforeUnload
|
|||
IF Answer = MsgBox_Cancel THEN
|
||||
__UI_UnloadSignal = False
|
||||
ELSEIF Answer = MsgBox_Yes THEN
|
||||
IF ThisFileName$ = "" THEN
|
||||
ThisFileName$ = "untitled"
|
||||
END IF
|
||||
SaveForm False, False
|
||||
END IF
|
||||
END IF
|
||||
|
|
Loading…
Reference in a new issue