mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Close EditWidget when a proper row removed
This commit is contained in:
parent
33042c1464
commit
1590a04d03
@ -812,7 +812,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