1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

fixed referenceable cloning (and as a side-effect enabled showing the type of the refereceable in the clone UI)

This commit is contained in:
Marc Zinnschlag 2014-09-20 12:48:51 +02:00
parent 90ad3f332a
commit b39cdb7645
2 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,13 @@ void CSVWorld::ReferenceableCreator::reset()
GenericCreator::reset();
}
void CSVWorld::ReferenceableCreator::cloneMode (const std::string& originId,
const CSMWorld::UniversalId::Type type)
{
GenericCreator::cloneMode (originId, type);
mType->setCurrentIndex (mType->findData (static_cast<int> (type)));
}
void CSVWorld::ReferenceableCreator::toggleWidgets(bool active)
{
CSVWorld::GenericCreator::toggleWidgets(active);

View File

@ -23,6 +23,10 @@ namespace CSVWorld
const CSMWorld::UniversalId& id);
virtual void reset();
virtual void cloneMode (const std::string& originId,
const CSMWorld::UniversalId::Type type);
virtual void toggleWidgets(bool active = true);
};