diff --git a/DRAMSys/traceAnalyzer/presentation/commenttreewidget.cpp b/DRAMSys/traceAnalyzer/presentation/commenttreewidget.cpp index 519e04e4..ebdf84db 100644 --- a/DRAMSys/traceAnalyzer/presentation/commenttreewidget.cpp +++ b/DRAMSys/traceAnalyzer/presentation/commenttreewidget.cpp @@ -64,7 +64,7 @@ CommentTreeWidget::CommentTreeWidget(QWidget *parent) : QTreeWidget(parent), bool ok; QString newText = QInputDialog::getText(this, QString("Change comment text"), QString("Change comment text"), QLineEdit::Normal, - QString(), &ok); + commentItem->Text(), &ok); if (ok) {