mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt/NewPatchDialog: Fix crashes on entry removal
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
namespace PatchEngine
|
||||
{
|
||||
struct Patch;
|
||||
struct PatchEntry;
|
||||
}
|
||||
|
||||
class QDialogButtonBox;
|
||||
@ -32,7 +33,7 @@ private:
|
||||
|
||||
void accept() override;
|
||||
|
||||
QGroupBox* CreateEntry(int index);
|
||||
QGroupBox* CreateEntry(PatchEngine::PatchEntry& entry);
|
||||
|
||||
QLineEdit* m_name_edit;
|
||||
QWidget* m_entry_widget;
|
||||
@ -43,5 +44,4 @@ private:
|
||||
std::vector<QLineEdit*> m_edits;
|
||||
|
||||
PatchEngine::Patch& m_patch;
|
||||
int m_id = 0;
|
||||
};
|
||||
|
Reference in New Issue
Block a user