Skip to content

Commit d00b5fb

Browse files
authoredMay 15, 2020
Fix drag and dropping of layer tree items (#36464)
1 parent 8b7a17b commit d00b5fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/layertree/qgslayertreemodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,9 @@ bool QgsLayerTreeModel::dropMimeData( const QMimeData *data, Qt::DropAction acti
10981098
// if we are coming from another QGIS instance, we need to add the layers too
10991099
bool ok = false;
11001100
// the application pid is only provided from QGIS 3.14, so do not check to OK before defaulting to moving in the legend
1101-
int qgisPid = data->data( QStringLiteral( "application/qgis.application.pid" ) ).toInt( &ok );
1101+
qint64 qgisPid = data->data( QStringLiteral( "application/qgis.application.pid" ) ).toInt( &ok );
11021102

1103-
if ( ok && qgisPid != QString::number( QCoreApplication::applicationPid() ) )
1103+
if ( ok && qgisPid != QCoreApplication::applicationPid() )
11041104
{
11051105
QByteArray encodedLayerDefinitionData = data->data( QStringLiteral( "application/qgis.layertree.layerdefinitions" ) );
11061106
QDomDocument layerDefinitionDoc;

0 commit comments

Comments
 (0)
Please sign in to comment.