Skip to content

Commit

Permalink
Automatically append pdf suffix for georef report
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13512 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 17, 2010
1 parent f686f8e commit 384a184
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/georeferencer/qgstransformsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ void QgsTransformSettingsDialog::on_tbnReportFile_clicked()
QString outputFileName = QFileDialog::getSaveFileName( 0, tr( "Select save PDF file" ), myLastUsedDir, tr( "PDF Format" ) + " (*.pdf *PDF)" );
if ( !outputFileName.isNull() )
{
if ( !outputFileName.endsWith( ".pdf", Qt::CaseInsensitive ) )
{
outputFileName.append( ".pdf" );
}
mReportFileLineEdit->setText( outputFileName );
}
}
Expand Down

0 comments on commit 384a184

Please sign in to comment.