Commit a3a5582b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix possible crash in url effect parameter

parent 5a09ccff
......@@ -92,7 +92,7 @@ void UrlListParamWidget::slotRefresh()
filter.remove(filter.indexOf(")")-1, -1);
m_fileExt = filter.split(" ");
if (values.first() == QLatin1String("%lumaPaths")) {
if (!values.isEmpty() && values.first() == QLatin1String("%lumaPaths")) {
// special case: Luma files
values.clear();
names.clear();
......@@ -110,7 +110,7 @@ void UrlListParamWidget::slotRefresh()
}
m_list->addItem(i18n("None (Dissolve)"));
}
if (values.first() == QLatin1String("%lutPaths")) {
if (!values.isEmpty() && values.first() == QLatin1String("%lutPaths")) {
// special case: LUT files
values.clear();
names.clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment