1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 21:45:32 +00:00

Fix for bug 3248

This commit is contained in:
pi03k 2016-03-17 22:34:45 +01:00
parent 24ae9f4ac1
commit 629a558e7b

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);