mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-30 00:36:39 +00:00
comments from PR
This commit is contained in:
parent
af5b1b3083
commit
41be5a17f4
1 changed files with 1 additions and 5 deletions
|
@ -611,7 +611,7 @@ void CSVDoc::View::addSubView (const CSMWorld::UniversalId& id, const std::strin
|
|||
view = mSubViewFactory.makeSubView (id, *mDocument);
|
||||
}
|
||||
assert(view);
|
||||
view->setParent(this); // unfloats view
|
||||
view->setParent(this);
|
||||
view->setEditLock (mDocument->getState() & CSMDoc::State_Locked);
|
||||
mSubViews.append(view); // only after assert
|
||||
|
||||
|
@ -667,15 +667,11 @@ void CSVDoc::View::addSubView (const CSMWorld::UniversalId& id, const std::strin
|
|||
{
|
||||
CSVWorld::DialogueSubView* dialogueView = dynamic_cast<CSVWorld::DialogueSubView*>(view);
|
||||
if (dialogueView)
|
||||
{
|
||||
dialogueView->setFloating(true);
|
||||
}
|
||||
|
||||
CSVWorld::ScriptSubView* scriptView = dynamic_cast<CSVWorld::ScriptSubView*>(view);
|
||||
if (scriptView)
|
||||
{
|
||||
scriptView->setFloating(true);
|
||||
}
|
||||
}
|
||||
|
||||
view->show();
|
||||
|
|
Loading…
Reference in a new issue