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

actorid
Marc Zinnschlag 11 years ago
parent c36dfef972
commit fa042a8aca

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

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

Loading…
Cancel
Save