1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-06 01:10:23 +00:00

Multiple IDE instance fix

When exporting "Untitled" code, then take current IDE instance into account.
This commit is contained in:
Roland Heyder 2023-03-19 22:56:11 +01:00
parent 7038e2527d
commit 9d9e063b67

View file

@ -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"