mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix crash when start print from sdcard
This commit is contained in:
@@ -7813,7 +7813,7 @@ wxString Plater::priv::get_export_gcode_filename(const wxString& extension, bool
|
||||
}
|
||||
} else {
|
||||
if (only_filename) {
|
||||
if(m_project_name == _L("Untitled"))
|
||||
if(!model.objects.empty() && m_project_name == _L("Untitled"))
|
||||
return wxString(fs::path(model.objects.front()->name).replace_extension().c_str()) + from_u8(plate_index_str) + extension;
|
||||
|
||||
if (export_all)
|
||||
|
||||
Reference in New Issue
Block a user