Skip to content

Commit

Permalink
fix: DciIcon can't load icon by source
Browse files Browse the repository at this point in the history
  Fallback to QQuickIconImage when `name` is empty, it will try to
load icon by fallbackSource.
  • Loading branch information
18202781743 committed Nov 30, 2023
1 parent 0a2205f commit 0403828
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/private/dquickdciiconimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ void DQuickDciIconImageItemPrivate::maybeUpdateUrl()
{
Q_Q(DQuickIconImage);
if (parentPriv->name.isEmpty()) {
q->setSource(QUrl());
return;
return DQuickIconImagePrivate::maybeUpdateUrl();
}

QUrl url;
Expand Down

0 comments on commit 0403828

Please sign in to comment.