Skip to content

Commit 363833b

Browse files
committed
gui: minor fix from code review feedback
Signed-off-by: Matt Liberty <[email protected]>
1 parent 2e993e8 commit 363833b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/gui/src/tclCmdInputWidget.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,7 @@ void TclCmdInputWidget::processTclResult(const int tcl_result)
709709
Tcl_Obj* stackTrace = nullptr;
710710
if (Tcl_DictObjGet(nullptr, options, key, &stackTrace) == TCL_OK
711711
&& stackTrace) {
712-
const char* result_msg = Tcl_GetString(stackTrace);
713-
emit addTextToOutput(QString::fromStdString(result_msg), Qt::red);
712+
emit addTextToOutput(Tcl_GetString(stackTrace), Qt::red);
714713
}
715714

716715
Tcl_DecrRefCount(key);

0 commit comments

Comments
 (0)