Skip to content
Permalink
Browse files
Don't show duplicate warning messages when loading a project
  • Loading branch information
nyalldawson committed May 24, 2021
1 parent e4a12e5 commit 203d8e7857007b7780e1258fc634d0e0a1c637ba
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/app/qgisapp.cpp
@@ -14433,9 +14433,15 @@ void QgisApp::showStatusMessage( const QString &message )

void QgisApp::loadingLayerMessages( const QString &layerName, const QList<QgsReadWriteContext::ReadWriteMessage> &messages )
{
for ( const auto &message : messages )
QVector<QgsReadWriteContext::ReadWriteMessage> shownMessages;
for ( const QgsReadWriteContext::ReadWriteMessage &message : messages )
{
if ( shownMessages.contains( message ) )
continue;

visibleMessageBar()->pushMessage( layerName, message.message(), message.categories().join( '\n' ), message.level() );

shownMessages.append( message );
}
}

0 comments on commit 203d8e7

Please sign in to comment.