From bc1ff1b248f869dd575b8800f173e164886cd1a0 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Mon, 11 Jun 2018 00:14:46 -0300 Subject: [PATCH] Properly reset __UI_DefaultButtonID when loading or creating new form. --- InForm/UiEditorPreview.bas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InForm/UiEditorPreview.bas b/InForm/UiEditorPreview.bas index 2bc8b8b..0977d08 100644 --- a/InForm/UiEditorPreview.bas +++ b/InForm/UiEditorPreview.bas @@ -413,6 +413,7 @@ SUB __UI_BeforeUpdateDisplay PUT #FileToLoad, 1, a$ CLOSE #FileToLoad + __UI_DefaultButtonID = 0 _SCREENSHOW IF INSTR(a$, "SUB __UI_LoadForm") > 0 THEN LoadPreviewText @@ -438,6 +439,7 @@ SUB __UI_BeforeUpdateDisplay LastPreviewDataSent$ = "" UndoPointer = 0 TotalUndoImages = 0 + __UI_DefaultButtonID = 0 _ICON SendSignal -7 'New form created ELSEIF TempValue = -6 THEN