diff --git a/src/slic3r/GUI/MsgDialog.cpp b/src/slic3r/GUI/MsgDialog.cpp index 677c11a59d..f85831cfa2 100644 --- a/src/slic3r/GUI/MsgDialog.cpp +++ b/src/slic3r/GUI/MsgDialog.cpp @@ -413,7 +413,7 @@ int RichMessageDialog::ShowModal() } Layout(); - return wxDialog::ShowModal(); + return MsgDialog::ShowModal(); } bool RichMessageDialog::IsCheckBoxChecked() const diff --git a/src/slic3r/GUI/UnsavedChangesDialog.cpp b/src/slic3r/GUI/UnsavedChangesDialog.cpp index 28ae365402..b05bfcc703 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.cpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.cpp @@ -827,7 +827,7 @@ inline int UnsavedChangesDialog::ShowModal() m_exit_action = Action(result); return 0; } - int r = wxDialog::ShowModal(); + int r = DPIDialog::ShowModal(); if (r != wxID_CANCEL && dynamic_cast<::CheckBox*>(FindWindowById(wxID_APPLY))->GetValue()) { wxGetApp().app_config->set(choise_key, std::to_string(int(m_exit_action))); }