Commit fb678428 authored by Jarek Kobus's avatar Jarek Kobus
Browse files

Take the old value from edit role when copying variable



Task-number: QTCREATORBUG-6669

Change-Id: Ife42d13289b924ce9a098b6828a8362808f27b3c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent bf97079b
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment