mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-22 16:20:58 +00:00
Close EditWidget when a proper row removed
This commit is contained in:
parent
bba3d6bec5
commit
7a927eec79
@ -822,7 +822,12 @@ void CSVWorld::SimpleDialogueSubView::rowsAboutToBeRemoved(const QModelIndex &pa
|
||||
{
|
||||
QModelIndex currentIndex(mTable->getModelIndex(getUniversalId().getId(), 0));
|
||||
|
||||
if (currentIndex.isValid() && currentIndex.row() >= start && currentIndex.row() <= end)
|
||||
if (!currentIndex.isValid())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentIndex.parent() == parent && currentIndex.row() >= start && currentIndex.row() <= end)
|
||||
{
|
||||
if(mEditWidget)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user