1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Merge remote-tracking branch 'pi03k/bug_3248'

This commit is contained in:
Marc Zinnschlag 2016-03-18 07:32:57 +01:00
commit 589fb1031b

View File

@ -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<std::string> selection (1, id);
mCommandDispatcher.setSelection (selection);