Skip to content
Permalink
Browse files

indent

  • Loading branch information
roya0045 committed Mar 21, 2019
1 parent 5bf0dcb commit 52736cedf5669fd716ccf63dfd67ade6d5904328
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/app/qgshandlebadlayers.cpp
@@ -117,7 +117,7 @@ QgsHandleBadLayers::QgsHandleBadLayers( const QList<QDomNode> &layers )
QString provider = node.namedItem( QStringLiteral( "provider" ) ).toElement().text();
QString vectorProvider = type == QLatin1String( "vector" ) ? provider : tr( "none" );
bool providerFileBased = ( QgsProviderRegistry::instance()->providerCapabilities( provider ) & QgsDataProvider::File ) != 0;
const QString basepath = datasource.left( datasource.lastIndexOf('/') );
const QString basepath = datasource.left( datasource.lastIndexOf( '/' ) );
mFileBase[name].append( basepath );

QgsDebugMsg( QStringLiteral( "name=%1 type=%2 provider=%3 datasource='%4'" )
@@ -375,10 +375,10 @@ void QgsHandleBadLayers::apply()
const QString name = mLayerList->item( i, 0 )->text();
QTableWidgetItem *item = mLayerList->item( i, 4 );
QString datasource = item->text();
const QString basepath = datasource.left( datasource.lastIndexOf('/') );
const QString basepath = datasource.left( datasource.lastIndexOf( '/' ) );
bool changed = false;

if ( mFileBase[ name ].size() == 1 )
if ( mFileBase[ name ].size() == 1 )
{
if ( mFileBase[ name ][0] != basepath && !baseChange.contains( mFileBase[ name ][0] ) )
{
@@ -439,7 +439,7 @@ void QgsHandleBadLayers::apply()
else
{
item->setForeground( QBrush( Qt::red ) );
if ( mFileBase[ name ].size() == 1 )
if ( mFileBase[ name ].size() == 1 )
mFileBase[ name ][0] = basepath ;
else if ( mFileBase[ name ].size() > 1 )
mFileBase[ name ].append( basepath );
@@ -496,4 +496,4 @@ void QgsHandleBadLayers::accept()
int QgsHandleBadLayers::layerCount()
{
return mLayerList->rowCount();
}
}

0 comments on commit 52736ce

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