From fb6784281350a6ff6ef4884dd108ceb78e29dc26 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 20 Dec 2011 13:26:07 +0100 Subject: [PATCH] Take the old value from edit role when copying variable Task-number: QTCREATORBUG-6669 Change-Id: Ife42d13289b924ce9a098b6828a8362808f27b3c Reviewed-by: Tobias Hunger --- src/libs/utils/environmentmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/environmentmodel.cpp b/src/libs/utils/environmentmodel.cpp index edacf140d1f..3d2a682a4b4 100644 --- a/src/libs/utils/environmentmodel.cpp +++ b/src/libs/utils/environmentmodel.cpp @@ -200,7 +200,7 @@ bool EnvironmentModel::setData(const QModelIndex &index, const QVariant &value, return true; const QString oldName = data(this->index(index.row(), 0, QModelIndex())).toString(); - const QString oldValue = data(this->index(index.row(), 1, QModelIndex())).toString(); + const QString oldValue = data(this->index(index.row(), 1, QModelIndex()), Qt::EditRole).toString(); int changesPos = d->findInChanges(oldName); if (index.column() == 0) {