Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 17, 2024
1 parent 76a4202 commit aa08d68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsprojectproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2740,12 +2740,13 @@ void QgsProjectProperties::removeIccProfile()

void QgsProjectProperties::saveIccProfile()
{
QString fileName = QFileDialog::getSaveFileName( this, tr( "Save ICC profile" ), QDir::homePath(),
QString fileName = QFileDialog::getSaveFileName( this, tr( "Save ICC Profile" ), QDir::homePath(),
tr( "ICC profile files (*.icc *.ICC)" ) );

if ( fileName.isEmpty() )
return;

fileName = QgsFileUtils::ensureFileNameHasExtension( fileName, { QStringLiteral( "icc" ) } );
const QString error = QgsColorUtils::saveIccProfile( mColorSpace, fileName );
if ( !error.isEmpty() )
{
Expand Down

0 comments on commit aa08d68

Please sign in to comment.