NOISSUE hack it together enough to get launching back
Meta index will now always return valid objects. They just might never load if they don't exist on the server.
This commit is contained in:
parent
e46aba9da5
commit
2660418d58
12 changed files with 162 additions and 58 deletions
|
@ -125,13 +125,15 @@ QString VersionList::humanReadable() const
|
|||
return m_name.isEmpty() ? m_uid : m_name;
|
||||
}
|
||||
|
||||
bool VersionList::hasVersion(const QString &version) const
|
||||
VersionPtr VersionList::getVersion(const QString &version)
|
||||
{
|
||||
return m_lookup.contains(version);
|
||||
}
|
||||
VersionPtr VersionList::getVersion(const QString &version) const
|
||||
{
|
||||
return m_lookup.value(version);
|
||||
VersionPtr out = m_lookup.value(version, nullptr);
|
||||
if(!out)
|
||||
{
|
||||
out = std::make_shared<Version>(m_uid, version);
|
||||
m_lookup[version] = out;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
void VersionList::setName(const QString &name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue