File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ QgsProcessingAlgorithmConfigurationWidget *QgsProcessingGuiRegistry::algorithmCo
66
66
{
67
67
if ( factory->canCreateFor ( algorithm ) )
68
68
{
69
- return factory->create ( algorithm );
69
+ std::unique_ptr< QgsProcessingAlgorithmConfigurationWidget > widget ( factory->create ( algorithm ) );
70
+ if ( widget )
71
+ widget->setAlgorithm ( algorithm );
72
+ return widget.release ();
70
73
}
71
74
}
72
75
Original file line number Diff line number Diff line change @@ -254,9 +254,9 @@ void TestProcessingGui::testSetGetConfig()
254
254
for ( const QgsProcessingAlgorithm *algorithm : algorithms )
255
255
{
256
256
std::unique_ptr<QgsProcessingAlgorithmConfigurationWidget> configWidget ( QgsGui::instance ()->processingGuiRegistry ()->algorithmConfigurationWidget ( algorithm ) );
257
-
258
257
if ( configWidget )
259
258
{
259
+ QCOMPARE ( configWidget->algorithm (), algorithm );
260
260
const QVariantMap defaultConfig = configWidget->configuration ();
261
261
configWidget->setConfiguration ( defaultConfig );
262
262
const QVariantMap defaultControlConfig = configWidget->configuration ();
You can’t perform that action at this time.
0 commit comments