diff --git a/src/plugins/qmldesigner/components/collectioneditor/collectiondetails.cpp b/src/plugins/qmldesigner/components/collectioneditor/collectiondetails.cpp index 3ff37a6fc27..7e61f5e6100 100644 --- a/src/plugins/qmldesigner/components/collectioneditor/collectiondetails.cpp +++ b/src/plugins/qmldesigner/components/collectioneditor/collectiondetails.cpp @@ -563,7 +563,10 @@ DataTypeWarning::Warning CollectionDetails::cellWarningCheck(int row, int column if ((columnType == DataType::String || columnType == DataType::Real) && cellType == DataType::Integer) return DataTypeWarning::Warning::None; - if ((columnType == DataType::Url || columnType == DataType::Image) && cellType == DataType::String) + if (columnType == DataType::Url && cellType == DataType::String) + return DataTypeWarning::Warning::None; + + if (columnType == DataType::Image && (cellType == DataType::Url || cellType == DataType::String)) return DataTypeWarning::Warning::None; if (columnType != cellType)