From 629a558e7b8f6f13698d7e99788cfe6dacd62a82 Mon Sep 17 00:00:00 2001 From: pi03k Date: Thu, 17 Mar 2016 22:34:45 +0100 Subject: [PATCH] Fix for bug 3248 --- apps/opencs/view/world/scriptsubview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/opencs/view/world/scriptsubview.cpp b/apps/opencs/view/world/scriptsubview.cpp index ee0acb560..c9b8127f6 100644 --- a/apps/opencs/view/world/scriptsubview.cpp +++ b/apps/opencs/view/world/scriptsubview.cpp @@ -324,7 +324,9 @@ void CSVWorld::ScriptSubView::switchToRow (int row) std::string id = mModel->data (mModel->index (row, idColumn)).toString().toUtf8().constData(); setUniversalId (CSMWorld::UniversalId (CSMWorld::UniversalId::Type_Script, id)); - mEditor->setPlainText (mModel->data (mModel->index (row, mColumn)).toString()); + bool oldSignalsState = mEditor->blockSignals( true ); + mEditor->setPlainText( mModel->data(mModel->index(row, mColumn)).toString() ); + mEditor->blockSignals( oldSignalsState ); std::vector selection (1, id); mCommandDispatcher.setSelection (selection);