diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-10-24 08:35:33 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-10-29 12:18:02 +0100 |
| commit | b3e113c05ae55b36f2748952544076e92f0b5bc0 (patch) | |
| tree | a49d33aafaf88aea0eef116c616accea6b89a1c3 /src/panels | |
| parent | 3f28c704236e8a909bb47bcd2695c0e0a9d74c23 (diff) | |
Hide the video player when the video has finished.
BUG: 339882
FIXED-IN: 4.14.3
REVIEW: 120776
Diffstat (limited to 'src/panels')
| -rw-r--r-- | src/panels/information/phononwidget.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp index 3d9909239..63f5aa3a5 100644 --- a/src/panels/information/phononwidget.cpp +++ b/src/panels/information/phononwidget.cpp @@ -165,6 +165,12 @@ void PhononWidget::stateChanged(Phonon::State newstate) m_stopButton->show(); m_playButton->hide(); break; + case Phonon::StoppedState: + if (m_videoPlayer) { + m_videoPlayer->hide(); + } + emit hasVideoChanged(false); + // fall through default: m_stopButton->hide(); m_playButton->show(); @@ -207,16 +213,7 @@ void PhononWidget::stop() { if (m_media) { m_media->stop(); - - m_stopButton->hide(); - m_playButton->show(); } - - if (m_videoPlayer) { - m_videoPlayer->hide(); - } - - emit hasVideoChanged(false); } void PhononWidget::slotHasVideoChanged(bool hasVideo) |
