Skip to content
Permalink
Browse files

Offline Editing Plugin - Windows Fix

  • Loading branch information
vinayan committed Jun 5, 2013
1 parent e21f160 commit 2c3340364cd9f6768a70aa5450f46d516cce715e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsofflineediting.cpp
@@ -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" ) );
@@ -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" ) );

0 comments on commit 2c33403

Please sign in to comment.
You can’t perform that action at this time.