Skip to content
Permalink
Browse files

Fix #12881 - Fix loading of QLR files with the same layers

Using just date stamps wasn't fine enough

Funded By TechnologyOne, Australia

- Backported to 2.8.3
- Cherry-picked from a316290
  • Loading branch information
NathanW2 committed Jun 19, 2015
1 parent fedced8 commit f4eca224c2e095421ce76d542079ef78b143481e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgslayerdefinition.cpp
@@ -49,7 +49,7 @@ bool QgsLayerDefinition::loadLayerDefinition( QDomDocument doc, QgsLayerTreeGrou
// Strip the date part because we will replace it.
QString layername = oldid.left( oldid.length() - 17 );
QDateTime dt = QDateTime::currentDateTime();
QString newid = layername + dt.toString( "yyyyMMddhhmmsszzz" );
QString newid = layername + dt.toString( "yyyyMMddhhmmsszzz" ) + QString::number( qrand() );
idElem.firstChild().setNodeValue( newid );
QDomNodeList treeLayerNodes = doc.elementsByTagName( "layer-tree-layer" );

0 comments on commit f4eca22

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