Skip to content
Permalink
Browse files

Fix crash on exit

  • Loading branch information
nyalldawson committed Jul 16, 2018
1 parent 45d856e commit 1134386825b66e10ad103ffd30031f0d252cd6fc
@@ -139,7 +139,8 @@ def addProviderActions(self, provider):

def addProvider(self, provider_id):
provider = QgsApplication.processingRegistry().providerById(provider_id)
self.addProviderActions(provider)
if provider is not None:
self.addProviderActions(provider)

def removeProvider(self, provider_id):
button = self.findChild(QToolButton, 'provideraction-' + provider_id)
@@ -165,7 +165,8 @@ void QgsProcessingToolboxModel::repopulateRecentAlgorithms( bool resetting )

if ( !mRegistry )
{
emit recentAlgorithmAdded();
if ( !resetting )
emit recentAlgorithmAdded();
return;
}

@@ -181,7 +182,8 @@ void QgsProcessingToolboxModel::repopulateRecentAlgorithms( bool resetting )

if ( recentAlgorithms.empty() )
{
emit recentAlgorithmAdded();
if ( !resetting )
emit recentAlgorithmAdded();
return;
}

@@ -199,8 +201,8 @@ void QgsProcessingToolboxModel::repopulateRecentAlgorithms( bool resetting )
if ( !resetting )
{
endInsertRows();
emit recentAlgorithmAdded();
}
emit recentAlgorithmAdded();
}

void QgsProcessingToolboxModel::providerAdded( const QString &id )

0 comments on commit 1134386

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