Fixed a crash on language changing

(DiffPresetDialog should get mainframe as a parent explicitly)
This commit is contained in:
YuSanka 2021-02-09 09:55:26 +01:00
parent 0b4720338f
commit e833e63c42
3 changed files with 5 additions and 3 deletions

View file

@ -21,6 +21,7 @@ namespace GUI{
class ModelNode;
class PresetComboBox;
class MainFrame;
using ModelNodePtrArray = std::vector<std::unique_ptr<ModelNode>>;
// On all of 3 different platforms Bitmap+Text icon column looks different
@ -333,7 +334,7 @@ class DiffPresetDialog : public DPIDialog
std::vector<DiffPresets> m_preset_combos;
public:
DiffPresetDialog();
DiffPresetDialog(MainFrame* mainframe);
~DiffPresetDialog() {}
void show(Preset::Type type = Preset::TYPE_INVALID);