Skip to content

Commit

Permalink
Better messagebox titles
Browse files Browse the repository at this point in the history
(cherry picked from commit c2b55eb)
  • Loading branch information
nyalldawson committed Dec 20, 2019
1 parent d2a1902 commit d81e0af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/qgscustomprojectiondialog.cpp
Expand Up @@ -404,7 +404,7 @@ void QgsCustomProjectionDialog::buttonBox_accepted()
CRS.createFromProj4( mCustomCRSparameters[i] );
if ( !CRS.isValid() )
{
QMessageBox::warning( this, tr( "QGIS Custom Projection" ),
QMessageBox::warning( this, tr( "Custom Coordinate Reference System" ),
tr( "The proj4 definition of '%1' is not valid." ).arg( mCustomCRSnames[i] ) );
return;
}
Expand Down Expand Up @@ -476,7 +476,7 @@ void QgsCustomProjectionDialog::pbnCalculate_clicked()

if ( !proj )
{
QMessageBox::warning( this, tr( "QGIS Custom Projection" ),
QMessageBox::warning( this, tr( "Custom Coordinate Reference System" ),
tr( "This proj projection definition is not valid." ) );
projectedX->clear();
projectedY->clear();
Expand All @@ -498,7 +498,7 @@ void QgsCustomProjectionDialog::pbnCalculate_clicked()

if ( !okN || !okE )
{
QMessageBox::warning( this, tr( "QGIS Custom Projection" ),
QMessageBox::warning( this, tr( "Custom Coordinate Reference System" ),
tr( "Northing and Easting must be in decimal form." ) );
projectedX->clear();
projectedY->clear();
Expand All @@ -514,7 +514,7 @@ void QgsCustomProjectionDialog::pbnCalculate_clicked()

if ( !wgs84Proj )
{
QMessageBox::critical( this, tr( "QGIS Custom Projection" ),
QMessageBox::critical( this, tr( "Custom Coordinate Reference System" ),
tr( "Internal Error (source projection invalid?)" ) );
projectedX->clear();
projectedY->clear();
Expand All @@ -528,7 +528,7 @@ void QgsCustomProjectionDialog::pbnCalculate_clicked()
QgsProjUtils::proj_pj_unique_ptr res( proj_create_crs_to_crs( pContext, "EPSG:4326", projDef.toUtf8(), nullptr ) );
if ( !res )
{
QMessageBox::warning( this, tr( "QGIS Custom Projection" ),
QMessageBox::warning( this, tr( "Custom Coordinate Reference System" ),
tr( "This proj projection definition is not valid." ) );
projectedX->clear();
projectedY->clear();
Expand Down

0 comments on commit d81e0af

Please sign in to comment.