mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 16:45:17 -04:00
set default value for cell when cloning references
This commit is contained in:
parent
b39cdb7645
commit
8ce87803c4
@ -126,6 +126,14 @@ void CSVWorld::ReferenceCreator::cellChanged()
|
|||||||
void CSVWorld::ReferenceCreator::cloneMode(const std::string& originId,
|
void CSVWorld::ReferenceCreator::cloneMode(const std::string& originId,
|
||||||
const CSMWorld::UniversalId::Type type)
|
const CSMWorld::UniversalId::Type type)
|
||||||
{
|
{
|
||||||
|
CSMWorld::IdTable& referenceTable = dynamic_cast<CSMWorld::IdTable&> (
|
||||||
|
*getData().getTableModel (CSMWorld::UniversalId::Type_References));
|
||||||
|
|
||||||
|
int cellIdColumn = referenceTable.findColumnIndex (CSMWorld::Columns::ColumnId_Cell);
|
||||||
|
|
||||||
|
mCell->setText (
|
||||||
|
referenceTable.data (referenceTable.getModelIndex (originId, cellIdColumn)).toString());
|
||||||
|
|
||||||
CSVWorld::GenericCreator::cloneMode(originId, type);
|
CSVWorld::GenericCreator::cloneMode(originId, type);
|
||||||
cellChanged(); //otherwise ok button will remain disabled
|
cellChanged(); //otherwise ok button will remain disabled
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user