Skip to content

Commit 0e831da

Browse files
committedMay 16, 2018
[processing] If algorithm has no short help, show description in algorithm dialog instead
1 parent b98f8f1 commit 0e831da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/gui/processing/qgsprocessingalgorithmdialogbase.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ QString QgsProcessingAlgorithmDialogBase::formatHelp( QgsProcessingAlgorithm *al
485485
}
486486
return QStringLiteral( "<h2>%1</h2>%2" ).arg( algorithm->displayName(), help );
487487
}
488+
else if ( !algorithm->shortDescription().isEmpty() )
489+
{
490+
return QStringLiteral( "<h2>%1</h2><p>%2</p>" ).arg( algorithm->displayName(), algorithm->shortDescription() );
491+
}
488492
else
489493
return QString();
490494
}

0 commit comments

Comments
 (0)