mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Revert "Don't allow viewing non-existent cells from the regionmap."
This reverts commit 7cdab415013ee5582db00845ed66e58c3ec34fd9.
This commit is contained in:
parent
7cdab41501
commit
ba46bcad40
@ -61,7 +61,7 @@ void CSVWorld::RegionMap::contextMenuEvent (QContextMenuEvent *event)
|
|||||||
menu.addAction (mViewInTableAction);
|
menu.addAction (mViewInTableAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selectionModel()->selectedIndexes().size()>0 && selectedNonExistentCells!=1)
|
if (selectionModel()->selectedIndexes().size()>0)
|
||||||
menu.addAction (mViewAction);
|
menu.addAction (mViewAction);
|
||||||
|
|
||||||
menu.exec (event->globalPos());
|
menu.exec (event->globalPos());
|
||||||
@ -400,7 +400,7 @@ void CSVWorld::RegionMap::dropEvent (QDropEvent* event)
|
|||||||
QModelIndex index2(cellsModel->getModelIndex (cellId,
|
QModelIndex index2(cellsModel->getModelIndex (cellId,
|
||||||
cellsModel->findColumnIndex (CSMWorld::Columns::ColumnId_Region)));
|
cellsModel->findColumnIndex (CSMWorld::Columns::ColumnId_Region)));
|
||||||
|
|
||||||
mDocument.getUndoStack().push(new CSMWorld::ModifyCommand
|
mDocument.getUndoStack().push(new CSMWorld::ModifyCommand
|
||||||
(*cellsModel, index2, QString::fromUtf8(record.getId().c_str())));
|
(*cellsModel, index2, QString::fromUtf8(record.getId().c_str())));
|
||||||
|
|
||||||
mRegionId = record.getId();
|
mRegionId = record.getId();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user