Skip to content
Permalink
Browse files

Fix drag and dropping of layer tree items (#36464)

  • Loading branch information
nirvn committed May 15, 2020
1 parent 8b7a17b commit d00b5fbb8056dd42b725d5ac24a23be58eb8514f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/layertree/qgslayertreemodel.cpp
@@ -1098,9 +1098,9 @@ bool QgsLayerTreeModel::dropMimeData( const QMimeData *data, Qt::DropAction acti
// if we are coming from another QGIS instance, we need to add the layers too
bool ok = false;
// the application pid is only provided from QGIS 3.14, so do not check to OK before defaulting to moving in the legend
int qgisPid = data->data( QStringLiteral( "application/qgis.application.pid" ) ).toInt( &ok );
qint64 qgisPid = data->data( QStringLiteral( "application/qgis.application.pid" ) ).toInt( &ok );

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

0 comments on commit d00b5fb

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