From 21bda2c7cd3aa6b185633daec663e3b1844e2933 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 28 Nov 2022 21:01:56 +0200 Subject: [PATCH] dolphin: set the maximum size of the video preview widget even if it is not visible Signed-off-by: Ivailo Monev --- dolphin/src/panels/information/informationpanelcontent.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dolphin/src/panels/information/informationpanelcontent.cpp b/dolphin/src/panels/information/informationpanelcontent.cpp index 7272a359..32985ca1 100644 --- a/dolphin/src/panels/information/informationpanelcontent.cpp +++ b/dolphin/src/panels/information/informationpanelcontent.cpp @@ -348,10 +348,8 @@ void InformationPanelContent::adjustWidgetSizes(int width) // try to increase the preview as large as possible m_preview->setMaximumSize(QSize(maxWidth, maxWidth)); - if (m_playerWidget->isVisible()) { - // the size of the video player should match that of the preview size - m_playerWidget->setMaximumSize(maxWidth, maxWidth); - } + // the size of the video player should match that of the preview size + m_playerWidget->setMaximumSize(maxWidth, maxWidth); } #include "moc_informationpanelcontent.cpp"