diff options
| author | Méven Car <[email protected]> | 2019-03-17 21:21:33 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2019-03-17 21:22:54 +0100 |
| commit | bf314f2dff99ad972a424564499e4d988588a173 (patch) | |
| tree | ee6f1e59742bb7cab2620654f377b79eab2634dd /src/panels/information/informationpanelcontent.cpp | |
| parent | 1ff74854ecb4e5c9a2099759b71c378225c9e988 (diff) | |
When the previewed video stops playing (because of the user or because the media playback has ended), show the regular preview only if the preview setting is on.
Summary:
Bug result after test plan :
{F6698812}
Test Plan:
In dolphin with the information panel
Select a video
Play the video
Disable the preview through the context menu (the video stays playing and visible and this will get fixed in a subsequent review)
Stop the video -> the video preview reappears when it should not
Reviewers: elvisangelaccio
Reviewed By: elvisangelaccio
Subscribers: elvisangelaccio, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D19843
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -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 7704bdf16..4b34e55e3 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -300,7 +300,7 @@ KFileItemList InformationPanelContent::items() { void InformationPanelContent::slotHasVideoChanged(bool hasVideo) { - m_preview->setVisible(!hasVideo); + m_preview->setVisible(InformationPanelSettings::previewsShown() && !hasVideo); } void InformationPanelContent::refreshMetaData() |
