Skip to content
Permalink
Browse files

Fixes #37038: Fix drag and drop field order in designer

  • Loading branch information
troopa81 authored and nyalldawson committed Oct 23, 2020
1 parent 0aa2b80 commit c8d8225155636f52d375feb748e8a43cae6b9c7a
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/app/qgsattributesformproperties.cpp
@@ -1068,12 +1068,12 @@ bool DnDTree::dropMimeData( QTreeWidgetItem *parent, int index, const QMimeData

if ( parent )
{
newItem = addItem( parent, itemElement, index );
newItem = addItem( parent, itemElement, index++ );
bDropSuccessful = true;
}
else
{
newItem = addItem( invisibleRootItem(), itemElement, index );
newItem = addItem( invisibleRootItem(), itemElement, index++ );
bDropSuccessful = true;
}

@@ -1593,4 +1593,3 @@ void QgsAttributesFormProperties::DnDTreeItemData::setBackgroundColor( const QCo
{
mBackgroundColor = backgroundColor;
}

0 comments on commit c8d8225

Please sign in to comment.
You can’t perform that action at this time.