diff options
| author | Méven Car <[email protected]> | 2019-11-11 14:07:47 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2019-11-12 08:20:58 +0100 |
| commit | 89a7b316d1a15aec405656ce4dca49463e803bff (patch) | |
| tree | 66223b62f8aae2d3019d0ab729c0e8c8c841ebdb /src/panels/information/informationpanelcontent.cpp | |
| parent | b9a2df09fcb5f7e1e62b742d32e961437a988da8 (diff) | |
[Information Panel] Allows to refresh icon and metadata for urls such as trash:/
Summary: CCBUG: 392882
Test Plan:
1. Create a file
2. Remove it, so that it goes to the trash
3. Open trash
4. Empty trash
Before:
Information panel icon is still user-trash-full
After:
Information panel icon is changed to user-trash
Reviewers: ngraham, #dolphin, elvisangelaccio
Reviewed By: ngraham, #dolphin, elvisangelaccio
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D23668
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index 417ca709c..5c1b7ae22 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -166,12 +166,13 @@ InformationPanelContent::~InformationPanelContent() void InformationPanelContent::showItem(const KFileItem& item) { - if (item != m_item) { + // compares item entries, comparing items only compares urls + if (m_item.entry() != item.entry()) { m_item = item; - m_preview->stopAnimatedImage(); refreshMetaData(); } + refreshPreview(); } |
