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

deque
Marc Zinnschlag 10 years ago
parent 90ad3f332a
commit b39cdb7645

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

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

Loading…
Cancel
Save