Skip to content

Commit

Permalink
Merge pull request #634 from vinayan/offlineFixWin
Browse files Browse the repository at this point in the history
Offline Editing Plugin - Windows Fix
  • Loading branch information
vinayan committed Jun 16, 2013
2 parents 449c2a2 + 2c33403 commit e8f7c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bool QgsOfflineEditing::convertToOfflineProject( const QString& offlineDataPath,
{
spatialite_init( 0 );
sqlite3* db;
int rc = sqlite3_open( dbPath.toStdString().c_str(), &db );
int rc = sqlite3_open( dbPath.toUtf8().constData(), &db );
if ( rc != SQLITE_OK )
{
showWarning( tr( "Could not open the spatialite database" ) );
Expand Down Expand Up @@ -794,7 +794,7 @@ sqlite3* QgsOfflineEditing::openLoggingDb()
QString dbPath = QgsProject::instance()->readEntry( PROJECT_ENTRY_SCOPE_OFFLINE, PROJECT_ENTRY_KEY_OFFLINE_DB_PATH );
if ( !dbPath.isEmpty() )
{
int rc = sqlite3_open( dbPath.toStdString().c_str(), &db );
int rc = sqlite3_open( dbPath.toUtf8().constData(), &db );
if ( rc != SQLITE_OK )
{
showWarning( tr( "Could not open the spatialite logging database" ) );
Expand Down

0 comments on commit e8f7c13

Please sign in to comment.