mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
fix: use after free begone!
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user