summaryrefslogtreecommitdiffstats
path: root/api/logic/meta/BaseEntity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/meta/BaseEntity.cpp')
-rw-r--r--api/logic/meta/BaseEntity.cpp9
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"