Skip to content

Commit

Permalink
Merge pull request #4951 from opengisch/bad_layer_handler
Browse files Browse the repository at this point in the history
If a layer is detected as localized by QFC, do not show QFC error panel
  • Loading branch information
suricactus authored Jan 17, 2024
2 parents 8128ab8 + 60825fc commit 67b6876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qfieldcloudprojectsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ void QFieldCloudProjectsModel::projectDownload( const QString &projectId )
}
else
{
if ( !layer.value( QStringLiteral( "is_valid" ) ).toBool() )
if ( !layer.value( QStringLiteral( "is_valid" ) ).toBool() && !layer.value( QStringLiteral( "is_localized" ) ).toBool() )
{
QString errorSummary = layer.value( QStringLiteral( "error_summary" ) ).toString() + layer.value( QStringLiteral( "provider_error_summary" ) ).toString();

Expand Down

0 comments on commit 67b6876

Please sign in to comment.