1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 20:53:50 +00:00

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

@ -20,7 +20,7 @@ namespace CSVRender
const CSMWorld::Data& mData; const CSMWorld::Data& mData;
CSVRender::NavigationOrbit mOrbit; CSVRender::NavigationOrbit mOrbit;
NifOgre::ObjectScenePtr mObject; NifOgre::ObjectScenePtr mObject;
void setup (const std::string& id); void setup (const std::string& id);
///< \param id ID of the referenceable to be viewed ///< \param id ID of the referenceable to be viewed

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