diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index ce889a897..d0ec7f5cb 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1703,7 +1703,7 @@ void GUI_App::MacOpenFiles(const wxArrayString &fileNames) //FIXME Switch application to G-code viewer mode? wxMessageBox("PrusaSlicer on startup", wxString::Format("Switching to G-code viewer for %s", gcode_files.front()), wxICON_INFORMATION); // Load the G-code into the G-code viewer. - this->plater()->load_gcode(paths.front()); + this->plater()->load_gcode(gcode_files.front()); } m_mac_initialized = true; }