Skip to content

Commit

Permalink
Fixes #37038: Fix drag and drop field order in designer
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 authored and nyalldawson committed Oct 23, 2020
1 parent 0aa2b80 commit c8d8225
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/qgsattributesformproperties.cpp
Expand Up @@ -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;
}

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

0 comments on commit c8d8225

Please sign in to comment.