mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-26 16:13:58 -06:00
Fixed a crash on language changing
(DiffPresetDialog should get mainframe as a parent explicitly)
This commit is contained in:
parent
0b4720338f
commit
e833e63c42
3 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue