-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.47..v0.2.48 changeset HootApiDbWriter.cpp
Garret Voltz edited this page Sep 27, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/HootApiDbWriter.cpp b/hoot-core/src/main/cpp/hoot/core/io/HootApiDbWriter.cpp
index 163ee5c..e6f2233 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/HootApiDbWriter.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/HootApiDbWriter.cpp
@@ -131,15 +131,14 @@ void HootApiDbWriter::open(const QString& urlStr)
if (mapId != -1)
{
+ _hootdb.verifyCurrentUserMapUse(mapId, true);
if (_overwriteMap) // delete map and overwrite it
{
- _hootdb.verifyCurrentUserMapUse(mapId, true);
_hootdb.deleteMap(mapId);
_hootdb.setMapId(_hootdb.insertMap(mapName));
}
else
{
- _hootdb.verifyCurrentUserMapUse(mapId, true);
_hootdb.setMapId(mapId);
LOG_DEBUG("Updating map with ID: " << _hootdb.getMapId() << "...");
}