fix: use after free begone!
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
da30904630
commit
d0ccd110a1
10 changed files with 86 additions and 26 deletions
|
@ -38,7 +38,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <QPointer>
|
||||
#include "ExternalResourcesPage.h"
|
||||
#include "ui/dialogs/ResourceDownloadDialog.h"
|
||||
|
||||
class ModFolderPage : public ExternalResourcesPage {
|
||||
Q_OBJECT
|
||||
|
@ -63,6 +65,7 @@ class ModFolderPage : public ExternalResourcesPage {
|
|||
void removeItems(const QItemSelection& selection) override;
|
||||
|
||||
void downloadMods();
|
||||
void downloadDialogFinished(int result);
|
||||
void updateMods(bool includeDeps = false);
|
||||
void deleteModMetadata();
|
||||
void exportModMetadata();
|
||||
|
@ -70,6 +73,7 @@ class ModFolderPage : public ExternalResourcesPage {
|
|||
|
||||
protected:
|
||||
std::shared_ptr<ModFolderModel> m_model;
|
||||
QPointer<ResourceDownload::ModDownloadDialog> m_downloadDialog;
|
||||
};
|
||||
|
||||
class CoreModFolderPage : public ModFolderPage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue