diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-05-28 18:01:39 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-05-28 18:01:39 +0300 |
commit | 737fc1a2a43ba68a640521f187424d0de800ddee (patch) | |
tree | dac1a30688941e84e000a89ae1144bd5f567ad9f /launcher/ui/pages/modplatform/ResourceModel.h | |
parent | 2f37cb31d990ec26e07760925b0943388d36c7e5 (diff) | |
parent | bdff8591aa945bd193f0fdae613f14dea6fb4809 (diff) | |
download | PrismLauncher-737fc1a2a43ba68a640521f187424d0de800ddee.tar.gz PrismLauncher-737fc1a2a43ba68a640521f187424d0de800ddee.tar.bz2 PrismLauncher-737fc1a2a43ba68a640521f187424d0de800ddee.zip |
Merge branch 'Fix_Assert' of github.com:Trial97/PrismLauncher into develop
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/pages/modplatform/ResourceModel.h')
-rw-r--r-- | launcher/ui/pages/modplatform/ResourceModel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/pages/modplatform/ResourceModel.h b/launcher/ui/pages/modplatform/ResourceModel.h index 735d1687..69e23473 100644 --- a/launcher/ui/pages/modplatform/ResourceModel.h +++ b/launcher/ui/pages/modplatform/ResourceModel.h @@ -83,7 +83,7 @@ class ResourceModel : public QAbstractListModel { /** Gets the icon at the URL for the given index. If it's not fetched yet, fetch it and update when fisinhed. */ std::optional<QIcon> getIcon(QModelIndex&, const QUrl&); - void addPack(ModPlatform::IndexedPack& pack, + void addPack(ModPlatform::IndexedPack::Ptr pack, ModPlatform::IndexedVersion& version, const std::shared_ptr<ResourceFolderModel> packs, bool is_indexed = false, @@ -134,7 +134,7 @@ class ResourceModel : public QAbstractListModel { QSet<QUrl> m_currently_running_icon_actions; QSet<QUrl> m_failed_icon_actions; - QList<ModPlatform::IndexedPack> m_packs; + QList<ModPlatform::IndexedPack::Ptr> m_packs; QList<DownloadTaskPtr> m_selected; // HACK: We need this to prevent callbacks from calling the model after it has already been deleted. |