Skip to content

Commit

Permalink
might fix the output of OGR error messages on windows
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11793 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 10, 2009
1 parent 582bf32 commit b987041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/ogr/qgsnewogrconnection.cpp
Expand Up @@ -84,7 +84,7 @@ void QgsNewOgrConnection::testConnection()
poDS = OGROpen( QFile::encodeName( uri ).constData(), FALSE, &pahDriver );
if ( poDS == NULL )
{
QMessageBox::information( this, tr( "Test connection" ), tr( "Connection failed - Check settings and try again.\n\nExtended error information:\n%1" ).arg( CPLGetLastErrorMsg() ) );
QMessageBox::information( this, tr( "Test connection" ), tr( "Connection failed - Check settings and try again.\n\nExtended error information:\n%1" ).arg( QString::fromUtf8( CPLGetLastErrorMsg() ) ) );
}
else
{
Expand Down

0 comments on commit b987041

Please sign in to comment.