Skip to content

Commit

Permalink
[wms] Insure that mbtiles layers are invalidated when dataset is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Feb 11, 2024
1 parent 447a39d commit 61dacd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsmbtiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ bool QgsMbTiles::open()
if ( mDatabase )
return true; // already opened

if ( mFilename.isEmpty() )
return false;

const sqlite3_database_unique_ptr database;
const int result = mDatabase.open_v2( mFilename, SQLITE_OPEN_READONLY, nullptr );
if ( result != SQLITE_OK )
Expand Down

0 comments on commit 61dacd9

Please sign in to comment.