diff --git a/src/map/mbtilesmap.cpp b/src/map/mbtilesmap.cpp index b00fd17d..57edc649 100644 --- a/src/map/mbtilesmap.cpp +++ b/src/map/mbtilesmap.cpp @@ -65,6 +65,7 @@ MBTilesMap::MBTilesMap(const QString &fileName, QObject *parent) { _db = QSqlDatabase::addDatabase("QSQLITE", fileName); _db.setDatabaseName(fileName); + _db.setConnectOptions("QSQLITE_OPEN_READONLY"); if (!_db.open()) { _errorString = fileName + ": Error opening database file";