mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use model index at drop position when asking user for confirm of drop event causing statistics to be deleted
p4#: 21242
This commit is contained in:
@@ -1020,7 +1020,8 @@ bool RimUiTreeView::hasClipboardValidData()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimUiTreeView::dropEvent(QDropEvent* dropEvent)
|
||||
{
|
||||
if (userConfirmedGridCaseGroupChange(currentIndex()))
|
||||
QModelIndex dropIndex = indexAt(dropEvent->pos());
|
||||
if (dropIndex.isValid() && userConfirmedGridCaseGroupChange(dropIndex))
|
||||
{
|
||||
QTreeView::dropEvent(dropEvent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user