From 9d9e063b673704ed513ea28e283ac1f0ead18f94 Mon Sep 17 00:00:00 2001 From: Roland Heyder Date: Sun, 19 Mar 2023 22:56:11 +0100 Subject: [PATCH] Multiple IDE instance fix When exporting "Untitled" code, then take current IDE instance into account. --- source/ide/ide_methods.bas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 3f0141b3e..ee427f808 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -20374,7 +20374,7 @@ SUB ExportCodeAs (docFormat$) ' color theme is utilized for HTML and Rich Text documents, the Wiki however ' has its own fixed blue theme. '---------- - pNam$ = ideprogname$: IF pNam$ = "" THEN pNam$ = "Untitled.bas" + pNam$ = ideprogname$: IF pNam$ = "" THEN pNam$ = "Untitled" + tempfolderindexstr$ + ".bas" SELECT CASE LCASE$(docFormat$) CASE "html": ext$ = ".htm" CASE "rich": ext$ = ".rtf"