File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ void QgsHandleBadLayers::apply()
370
370
int idx = mLayerList ->item ( i, 0 )->data ( Qt::UserRole ).toInt ();
371
371
QDomNode &node = const_cast <QDomNode &>( mLayers [ idx ] );
372
372
373
- QString name = mLayerList ->item ( i, 0 )->text ();
373
+ const QString name = mLayerList ->item ( i, 0 )->text ();
374
374
QTableWidgetItem *item = mLayerList ->item ( i, 4 );
375
375
QString datasource = item->text ();
376
376
const QString basepath = datasource.left ( datasource.lastIndexOf (' /' ) );
@@ -406,7 +406,6 @@ void QgsHandleBadLayers::apply()
406
406
bool dataSourceChanged { false };
407
407
const QString layerId { node.namedItem ( QStringLiteral ( " id" ) ).toElement ().text () };
408
408
const QString provider { node.namedItem ( QStringLiteral ( " provider" ) ).toElement ().text () };
409
- const QString name { mLayerList ->item ( i, 0 )->text () };
410
409
411
410
// Try first to change the datasource of the existing layers, this will
412
411
// maintain the current status (checked/unchecked) and group
You can’t perform that action at this time.
0 commit comments