diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-19 02:13:49 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:02 +0200 |
commit | 2660418d58efb33cd3a0ab8ed9d48c359c076905 (patch) | |
tree | 0f947fea5c1dc59a2db83bab85e3fecbc19e4c5c /api/logic/meta/BaseEntity.cpp | |
parent | e46aba9da584338db8d8a1a8a487bdcc6cf84343 (diff) | |
download | MultiMC-2660418d58efb33cd3a0ab8ed9d48c359c076905.tar MultiMC-2660418d58efb33cd3a0ab8ed9d48c359c076905.tar.gz MultiMC-2660418d58efb33cd3a0ab8ed9d48c359c076905.tar.lz MultiMC-2660418d58efb33cd3a0ab8ed9d48c359c076905.tar.xz MultiMC-2660418d58efb33cd3a0ab8ed9d48c359c076905.zip |
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.
Diffstat (limited to 'api/logic/meta/BaseEntity.cpp')
-rw-r--r-- | api/logic/meta/BaseEntity.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/api/logic/meta/BaseEntity.cpp b/api/logic/meta/BaseEntity.cpp index 18b7f92f..809f88cb 100644 --- a/api/logic/meta/BaseEntity.cpp +++ b/api/logic/meta/BaseEntity.cpp @@ -137,4 +137,13 @@ void Meta::BaseEntity::load() m_updateTask->start(); } +shared_qobject_ptr<Task> Meta::BaseEntity::getCurrentTask() +{ + if(m_updateStatus == UpdateStatus::InProgress) + { + return m_updateTask; + } + return nullptr; +} + #include "BaseEntity.moc" |