Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
also get crs record count readonly (follows up 9154e4e)
  • Loading branch information
jef-n committed Apr 5, 2012
1 parent 2a126af commit fdceb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -1377,7 +1377,7 @@ long QgsCoordinateReferenceSystem::getRecordCount()
int myResult;
long myRecordCount = 0;
//check the db is available
myResult = sqlite3_open( QgsApplication::qgisUserDbFilePath().toUtf8().data(), &myDatabase );
myResult = sqlite3_open_v2( QgsApplication::qgisUserDbFilePath().toUtf8().data(), &myDatabase, SQLITE_OPEN_READONLY, NULL );
if ( myResult != SQLITE_OK )
{
QgsDebugMsg( QString( "Can't open database: %1" ).arg( sqlite3_errmsg( myDatabase ) ) );
Expand Down

0 comments on commit fdceb2f

Please sign in to comment.