Commit f5b900f7 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix undo effect change was restoring incorrect parameter

parent d88f7f0a
......@@ -40,8 +40,7 @@ AssetCommand::AssetCommand(const std::shared_ptr<AssetParameterModel> &model, co
} else if (TransitionsRepository::get()->exists(id)) {
setText(i18n("Edit %1", TransitionsRepository::get()->getName(id)));
}
QVariant previousVal = m_model->data(index, AssetParameterModel::ValueRole);
m_oldValue = previousVal.type() == previousVal.toString();
m_oldValue = m_model->data(index, AssetParameterModel::ValueRole).toString();
}
void AssetCommand::undo()
......
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