diff --git a/launcher/icons/IconList.cpp b/launcher/icons/IconList.cpp index 5080d3f8..21bed70a 100644 --- a/launcher/icons/IconList.cpp +++ b/launcher/icons/IconList.cpp @@ -357,7 +357,7 @@ bool IconList::deleteIcon(const QString &key) if (!iconFileExists(key)) return false; - return QFile::remove(icon(key)->m_images[IconType::FileBased].filename); + return QFile::remove(icon(key)->getFilePath()); } bool IconList::trashIcon(const QString &key)