┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2019-03-17 21:21:33 +0100
committerMéven Car <[email protected]>2019-03-17 21:22:54 +0100
commitbf314f2dff99ad972a424564499e4d988588a173 (patch)
treeee6f1e59742bb7cab2620654f377b79eab2634dd /src
parent1ff74854ecb4e5c9a2099759b71c378225c9e988 (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')
-rw-r--r--src/panels/information/informationpanelcontent.cpp2
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()