mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-12 13:37:08 +03:00
Close EditWidget when a proper row removed
This commit is contained in:
parent
bba3d6bec5
commit
7a927eec79
1 changed files with 6 additions and 1 deletions
|
@ -822,7 +822,12 @@ void CSVWorld::SimpleDialogueSubView::rowsAboutToBeRemoved(const QModelIndex &pa
|
||||||
{
|
{
|
||||||
QModelIndex currentIndex(mTable->getModelIndex(getUniversalId().getId(), 0));
|
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)
|
if(mEditWidget)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue