Qt/NewPatchDialog: Fix crashes on entry removal

This commit is contained in:
spycrab
2019-04-23 18:46:38 +02:00
parent 2abe333ce9
commit a6e7a90a4a
2 changed files with 40 additions and 26 deletions

View File

@ -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;
};