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
|
@ -37,7 +37,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
#include "ExternalResourcesPage.h"
|
||||
#include "ui/dialogs/ResourceDownloadDialog.h"
|
||||
#include "ui_ExternalResourcesPage.h"
|
||||
|
||||
#include "minecraft/mod/TexturePackFolderModel.h"
|
||||
|
@ -57,10 +60,12 @@ class TexturePackPage : public ExternalResourcesPage {
|
|||
public slots:
|
||||
void updateFrame(const QModelIndex& current, const QModelIndex& previous) override;
|
||||
void downloadTexturePacks();
|
||||
void downloadDialogFinished(int result);
|
||||
void updateTexturePacks();
|
||||
void deleteTexturePackMetadata();
|
||||
void changeTexturePackVersion();
|
||||
|
||||
private:
|
||||
std::shared_ptr<TexturePackFolderModel> m_model;
|
||||
QPointer<ResourceDownload::TexturePackDownloadDialog> m_downloadDialog;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue