Skip to content

Commit be9d4d9

Browse files
committed
errorbox: cosmetic fix for double dot in error message
1 parent 6938572 commit be9d4d9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

sources/widgets/errorbox.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ ErrorBoxWidget::ErrorBoxWidget( gsl::not_null<QFrame*> frame,
2121
void ErrorBoxWidget::SetMessage( const QString& message,
2222
const QString& errorDetails /*= QString() */ )
2323
{
24-
auto formattedHtml = tr( "<p>%1." ).arg( message );
24+
auto formattedHtml = tr( "<p>%1" ).arg( message );
25+
26+
if ( formattedHtml.endsWith( '.' ) == false )
27+
{
28+
formattedHtml.append( '.' );
29+
}
2530

2631
if ( errorDetails.isEmpty() == false )
2732
{

0 commit comments

Comments
 (0)