OSDN Git Service

dolphin: set the maximum size of the video preview widget even if it is not visible
authorIvailo Monev <xakepa10@gmail.com>
Mon, 28 Nov 2022 19:01:56 +0000 (21:01 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 28 Nov 2022 19:01:56 +0000 (21:01 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
dolphin/src/panels/information/informationpanelcontent.cpp

index 7272a35..32985ca 100644 (file)
@@ -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"