]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/informationpanelcontent.cpp
Information Panel: show the phonon when we can use phonon
[dolphin.git] / src / panels / information / informationpanelcontent.cpp
index 6cbdd4b3bdef37c1563981e4dfc472f255493eaa..fe964f3648707e73997159870c07a037cb1dedfa 100644 (file)
@@ -248,6 +248,7 @@ void InformationPanelContent::refreshPreview()
                 // change the cursor of the preview
                 m_preview->setCursor(Qt::PointingHandCursor);
                 m_preview->installEventFilter(m_phononWidget);
+                m_phononWidget->show();
 
                 // if the video is playing, has been paused or stopped
                 // we don't need to update the preview/phonon widget states
@@ -267,7 +268,6 @@ void InformationPanelContent::refreshPreview()
                         m_preview->show();
                     }
 
-                    m_phononWidget->show();
                     m_phononWidget->setUrl(m_item.targetUrl(), m_isVideo ? PhononWidget::MediaKind::Video : PhononWidget::MediaKind::Audio);
                     adjustWidgetSizes(parentWidget()->width());
                 }