Skip to content

Commit

Permalink
Fix HTML excape in file writer tooltips
Browse files Browse the repository at this point in the history
Fix #46508
  • Loading branch information
elpaso authored and github-actions[bot] committed Feb 2, 2022
1 parent 9c2938f commit 582bb30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/ogr/qgsvectorlayersaveasdialog.cpp
Expand Up @@ -285,8 +285,8 @@ QList<QPair<QLabel *, QWidget *> > QgsVectorLayerSaveAsDialog::createControls( c
if ( control )
{
// Pack the tooltip in some html element, so it gets linebreaks.
label->setToolTip( QStringLiteral( "<p>%1</p>" ).arg( option->docString ) );
control->setToolTip( QStringLiteral( "<p>%1</p>" ).arg( option->docString ) );
label->setToolTip( QStringLiteral( "<p>%1</p>" ).arg( option->docString.toHtmlEscaped() ) );
control->setToolTip( QStringLiteral( "<p>%1</p>" ).arg( option->docString.toHtmlEscaped() ) );

controls << QPair<QLabel *, QWidget *>( label, control );
}
Expand Down

0 comments on commit 582bb30

Please sign in to comment.