refactor(RD): move BaseInstance dep. to subclasses of ResourceModel

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2023-01-03 12:48:22 -03:00
parent b3330cb0da
commit e62e1d9701
No known key found for this signature in database
GPG key ID: 8D0F221F0A59F469
4 changed files with 7 additions and 6 deletions

View file

@ -21,7 +21,7 @@ namespace ResourceDownload {
QHash<ResourceModel*, bool> ResourceModel::s_running_models;
ResourceModel::ResourceModel(BaseInstance const& base_inst, ResourceAPI* api) : QAbstractListModel(), m_base_instance(base_inst), m_api(api)
ResourceModel::ResourceModel(ResourceAPI* api) : QAbstractListModel(), m_api(api)
{
s_running_models.insert(this, true);
}