From d0a4b5b07ff30f707d5c5e169abdb79351c69e5d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 20 Mar 2019 20:10:45 -0400 Subject: [PATCH] keeping track of changes --- src/app/qgshandlebadlayers.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/qgshandlebadlayers.cpp b/src/app/qgshandlebadlayers.cpp index 670fa1524c4..8a4a3d2f051 100644 --- a/src/app/qgshandlebadlayers.cpp +++ b/src/app/qgshandlebadlayers.cpp @@ -437,6 +437,10 @@ void QgsHandleBadLayers::apply() else { item->setForeground( QBrush( Qt::red ) ); + if ( mFileBase[ name ].size() == 1 ) + mFileBase[ name ][0] = basepath ; + else if ( mFileBase[ name ].size() > 1 ) + mFileBase[ name ].append( basepath ); } } } @@ -490,4 +494,4 @@ void QgsHandleBadLayers::accept() int QgsHandleBadLayers::layerCount() { return mLayerList->rowCount(); -} \ No newline at end of file +}