diff options
| author | Stefan Brüns <[email protected]> | 2019-04-18 14:37:09 +0200 |
|---|---|---|
| committer | Stefan Brüns <[email protected]> | 2019-04-18 15:45:00 +0200 |
| commit | e26e823909f3d7ef412586b17c171f3c62ec2516 (patch) | |
| tree | dd3856b79aa3694faed1931dc9275c2d57ca941a /src | |
| parent | 05a4d27813e302a2f7e8f713b26d55116e6c98c3 (diff) | |
Fix missing update of file name label in information panel without preview
Summary:
The file name label was only updated when the preview was shown, after
the function was moved into a conditional section. This is a regression
caused by commit 405aa4878f75 ("[InformationPanel] Hide the video when the
preview is disabled, avoid computing the preview when it is disabled").
Test Plan:
Hide the preview in dolphin's information panel
Hover different files, the name label reflects the hovered file again
Reviewers: #dolphin, elvisangelaccio, meven, ngraham
Reviewed By: meven
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D20660
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index e694dd8a0..c130ad370 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -154,12 +154,12 @@ void InformationPanelContent::refreshPreview() { m_previewJob->kill(); } + setNameLabelText(m_item.text()); if (InformationPanelSettings::previewsShown()) { m_preview->show(); const QUrl itemUrl = m_item.url(); const bool isSearchUrl = itemUrl.scheme().contains(QStringLiteral("search")) && m_item.localPath().isEmpty(); - setNameLabelText(m_item.text()); if (isSearchUrl) { // in the case of a search-URL the URL is not readable for humans // (at least not useful to show in the Information Panel) |
