Skip to content

Commit

Permalink
Offline Editing Plugin - Windows Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayan committed Jun 5, 2013
1 parent e21f160 commit 2c33403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsofflineediting.cpp
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 2c33403

Please sign in to comment.