From dcbc5e1251849acc5a5c2e29f6086b3f200b307f Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 28 Apr 2022 09:55:05 +0200 Subject: [PATCH] Fixed typo into Plater::load_gcode leading to a message dialog without buttons --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 253c77665e..8201eb9403 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -5418,7 +5418,7 @@ void Plater::load_gcode(const wxString& filename) if (p->preview->get_canvas3d()->get_gcode_layers_zs().empty()) { //wxMessageDialog(this, _L("The selected file") + ":\n" + filename + "\n" + _L("does not contain valid gcode."), MessageDialog(this, _L("The selected file") + ":\n" + filename + "\n" + _L("does not contain valid gcode."), - wxString(GCODEVIEWER_APP_NAME) + " - " + _L("Error while loading .gcode file"), wxCLOSE | wxICON_WARNING | wxCENTRE).ShowModal(); + wxString(GCODEVIEWER_APP_NAME) + " - " + _L("Error while loading .gcode file"), wxCANCEL | wxICON_WARNING | wxCENTRE).ShowModal(); set_project_filename(wxEmptyString); } else