From ccab0b3cfbecdcae136ed57c2eabba8ce6829e1b Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Fri, 13 Aug 2021 12:17:35 +0200 Subject: [PATCH] Insert old comment text in change comment dialog. --- DRAMSys/traceAnalyzer/presentation/commenttreewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {