┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/informationpanel.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2019-03-24 18:32:25 +0100
committerMéven Car <[email protected]>2019-03-24 18:34:32 +0100
commit35f1fd5c154c72a63f4f70073e8dc8113c051f4f (patch)
tree737c01f852c692c2d60fb3be06e48fad6473027f /src/panels/information/informationpanel.cpp
parent3fe65471973cd44da6524019b712de2fffc0e2b8 (diff)
[InformationPanel] Hide the video when the preview is disabled, avoid computing the preview when it is disabled
Summary: Bug symptom : {F6698879} Fix the bugs and allow to avoid launching a PreviewJob with all files even when the preview is disabled. Test Plan: # In dolphin with an information panel with preview on # launch the video preview # Disable the preview ->bug 1: the video player control is still visible (this bug fix this) # re-enable preview -> bug 2: the video stays visible and the preview is displayed above (this bug fix this) Reviewers: #dolphin, elvisangelaccio, ngraham Reviewed By: #dolphin, elvisangelaccio, ngraham Subscribers: ngraham, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D19844
Diffstat (limited to 'src/panels/information/informationpanel.cpp')
-rw-r--r--src/panels/information/informationpanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp
index a864cb005..cd8b6b38d 100644
--- a/src/panels/information/informationpanel.cpp
+++ b/src/panels/information/informationpanel.cpp
@@ -198,8 +198,8 @@ void InformationPanel::showContextMenu(const QPoint &pos) {
const bool isChecked = action->isChecked();
if (action == previewAction) {
- m_content->setPreviewVisible(isChecked);
InformationPanelSettings::setPreviewsShown(isChecked);
+ m_content->refreshPreview();
} else if (action == configureAction) {
FileMetaDataConfigurationDialog* dialog = new FileMetaDataConfigurationDialog(this);
dialog->setDescription(i18nc("@label::textbox",