diff --git a/src/app/qgsspatialitesourceselect.cpp b/src/app/qgsspatialitesourceselect.cpp index be1742d537cb..d4a563ecff5b 100644 --- a/src/app/qgsspatialitesourceselect.cpp +++ b/src/app/qgsspatialitesourceselect.cpp @@ -319,7 +319,7 @@ void QgsSpatiaLiteSourceSelect::addNewConnection() QString myPath = myFI.path(); QString myName = myFI.fileName(); - handle = openSpatiaLiteDb( myFI.canonicalPath() ); + handle = openSpatiaLiteDb( myFI.canonicalFilePath() ); if ( handle ) { // OK, this one is a valid SpatiaLite DB