mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-25 10:48:04 +02:00
Open MBTiles SQL files in read-only mode
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user