Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix drag and dropping of layer tree items (#36464)
  • Loading branch information
nirvn committed May 15, 2020
1 parent 8b7a17b commit d00b5fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/layertree/qgslayertreemodel.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d00b5fb

Please sign in to comment.