Skip to content

Commit 2c33403

Browse files
committed
Offline Editing Plugin - Windows Fix
1 parent e21f160 commit 2c33403

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsofflineediting.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bool QgsOfflineEditing::convertToOfflineProject( const QString& offlineDataPath,
7373
{
7474
spatialite_init( 0 );
7575
sqlite3* db;
76-
int rc = sqlite3_open( dbPath.toStdString().c_str(), &db );
76+
int rc = sqlite3_open( dbPath.toUtf8().constData(), &db );
7777
if ( rc != SQLITE_OK )
7878
{
7979
showWarning( tr( "Could not open the spatialite database" ) );
@@ -794,7 +794,7 @@ sqlite3* QgsOfflineEditing::openLoggingDb()
794794
QString dbPath = QgsProject::instance()->readEntry( PROJECT_ENTRY_SCOPE_OFFLINE, PROJECT_ENTRY_KEY_OFFLINE_DB_PATH );
795795
if ( !dbPath.isEmpty() )
796796
{
797-
int rc = sqlite3_open( dbPath.toStdString().c_str(), &db );
797+
int rc = sqlite3_open( dbPath.toUtf8().constData(), &db );
798798
if ( rc != SQLITE_OK )
799799
{
800800
showWarning( tr( "Could not open the spatialite logging database" ) );

0 commit comments

Comments
 (0)