Fix creating video preview panel crashes if a video file is selected
To reproduce the crash:
- Open Dolphin, disable information panel and close Dolphin
- Re-open Dolphin
- Select a video file
- Enable information panel
- Crash
Problem is that some elements of the MediaWidget panel are created when the widget is shown, in showEvent (m_seekSlider and m_topLayout), and these elements are called before being created.
This MR fixes 2 different crashes:
- Crash creating panel when a video file is selected (call to
m_seekSliderbefore its creation) - Crash creating panel when a video file is selected and autoplay enabled (call to
m_topLayoutbefore its creation)