Skip to content
Permalink
Browse files
also get crs record count readonly (follows up 9154e4e)
  • Loading branch information
jef-n committed Apr 5, 2012
1 parent 2a126af commit fdceb2fc230942267c89818d543a7ae1f5685c77
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgscoordinatereferencesystem.cpp
@@ -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 ) ) );

0 comments on commit fdceb2f

Please sign in to comment.