Materials: Check if m_uuid is empty before adding to recents

This commit is contained in:
Johannes Thyssen Tishman
2024-12-03 16:59:32 +01:00
committed by Chris Hennes
parent 8d06f768c6
commit 7176b0f8f3

View File

@@ -482,6 +482,9 @@ void MaterialTreeWidget::saveRecents()
void MaterialTreeWidget::addRecent(const QString& uuid)
{
if (uuid.isEmpty()) {
return;
}
// Ensure it is a material. New, unsaved materials will not be
try {
auto material = _materialManager.getMaterial(uuid);