mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: crash on MediaFilePanel when download in empty list
Change-Id: I13f33005a8730498aea28b32da2818ceca055aac
This commit is contained in:
@@ -138,7 +138,7 @@ void Slic3r::GUI::ImageGrid::DoAction(size_t index, int action)
|
||||
if (action == 0) {
|
||||
m_file_sys->DeleteFiles(index);
|
||||
} else {
|
||||
if (index >= 0) {
|
||||
if (index != -1) {
|
||||
auto &file = m_file_sys->GetFile(index);
|
||||
if (file.IsDownload() && file.progress >= -1) {
|
||||
if (file.progress >= 100) {
|
||||
|
||||
Reference in New Issue
Block a user