From bec6c4e726296db27254aa9c6df012a8725b272e Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 1 Sep 2014 10:56:38 +0200 Subject: [PATCH] fixed editor creation for Display_LongString --- apps/opencs/view/world/util.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/opencs/view/world/util.cpp b/apps/opencs/view/world/util.cpp index 4e82eab63e..3bfc4663a0 100644 --- a/apps/opencs/view/world/util.cpp +++ b/apps/opencs/view/world/util.cpp @@ -169,8 +169,11 @@ QWidget *CSVWorld::CommandDelegate::createEditor (QWidget *parent, const QStyleO return new QDoubleSpinBox(parent); case CSMWorld::ColumnBase::Display_LongString: - - return new QTextEdit(parent); + { + QPlainTextEdit *edit = new QPlainTextEdit(parent); + edit->setUndoRedoEnabled (false); + return edit; + } case CSMWorld::ColumnBase::Display_Boolean: