Skip to content

Commit 94c1c9b

Browse files
adeas31OpenModelica-Hudson
authored andcommitted
Fixed typename & strings for OMEdit logs
1 parent d130cee commit 94c1c9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/Template/GenerateAPIFunctionsTpl.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ end getQtInArgBoxed;
286286
template getQtCommandLogText(Text name, DAE.Type ty)
287287
::=
288288
match ty
289-
case T_CODE(ty=C_TYPENAME(__))
290-
case T_STRING(__) then '<%name%>'
289+
case T_CODE(ty=C_TYPENAME(__)) then '<%name%>'
290+
case T_STRING(__) then 'QString("\""+<%name%>+"\"")'
291291
case T_INTEGER(__)
292292
case T_REAL(__) then 'QString::number(<%name%>)'
293293
case T_BOOL(__) then 'QString(<%name%> ? "true" : "false")'

0 commit comments

Comments
 (0)