Skip to content

Commit

Permalink
fix: [icon] In some scenarios, the default icon for files is displaye…
Browse files Browse the repository at this point in the history
…d incorrectly

When calling the refresh interface, SyncFileInfo needs to clear the icon object.

Log: fix bug
Bug: https://pms.uniontech.com/bug-view-210857.html
  • Loading branch information
Kakueeen authored and deepin-bot[bot] committed Jul 21, 2023
1 parent 7bfa569 commit 1491572
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dfm-base/file/local/syncfileinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ void SyncFileInfo::refresh()
d->mimeType = QMimeType();
d->mimeTypeMode = QMimeDatabase::MatchDefault;
d->cacheAttributes.clear();
d->fileIcon = QIcon();
extendOtherCache.clear();
}

Expand Down

0 comments on commit 1491572

Please sign in to comment.