Commit 2b613d6f authored by dt's avatar dt
Browse files

Fix id creation

parent 2160436d
...@@ -90,8 +90,8 @@ QtVersionManager::QtVersionManager() ...@@ -90,8 +90,8 @@ QtVersionManager::QtVersionManager()
int id = s->value("Id", -1).toInt(); int id = s->value("Id", -1).toInt();
if (id == -1) if (id == -1)
id = getUniqueId(); id = getUniqueId();
else if (id > m_idcount) else if (m_idcount < id)
m_idcount = id; m_idcount = id + 1;
bool isAutodetected; bool isAutodetected;
QString autodetectionSource; QString autodetectionSource;
if (s->contains("isAutodetected")) { if (s->contains("isAutodetected")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment