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

Deleted records can be cloned

This commit is contained in:
Stanislav Bas 2015-06-28 00:31:41 +03:00
parent 9d274ee156
commit e4d52ff9b0

View file

@ -447,7 +447,7 @@ void CSVWorld::Table::cloneRecord()
{ {
QModelIndexList selectedRows = selectionModel()->selectedRows(); QModelIndexList selectedRows = selectionModel()->selectedRows();
const CSMWorld::UniversalId& toClone = getUniversalId(selectedRows.begin()->row()); const CSMWorld::UniversalId& toClone = getUniversalId(selectedRows.begin()->row());
if (selectedRows.size()==1 && !mModel->isDeleted (toClone.getId())) if (selectedRows.size() == 1)
{ {
emit cloneRequest (toClone); emit cloneRequest (toClone);
} }