use proper title for reference prewview subviews (avoid internal ID)

This commit is contained in:
Marc Zinnschlag 2014-03-16 13:22:32 +01:00
parent c36dfef972
commit fa042a8aca
2 changed files with 3 additions and 1 deletions

View file

@ -21,6 +21,8 @@ CSVWorld::PreviewSubView::PreviewSubView (const CSMWorld::UniversalId& id, CSMDo
std::string referenceableId = std::string referenceableId =
document.getData().getReferences().getRecord (id.getId()).get().mRefID; document.getData().getReferences().getRecord (id.getId()).get().mRefID;
setWindowTitle (("Preview: Reference to " + referenceableId).c_str());
mScene = mScene =
new CSVRender::PreviewWidget (document.getData(), referenceableId, id.getId(), this); new CSVRender::PreviewWidget (document.getData(), referenceableId, id.getId(), this);
} }