backport of crash fix on not existing playPauseButton
svn path=/branches/KDE/4.3/kdelibs/; revision=1002604
This commit is contained in:
parent
871e1baaf4
commit
5b5037cf7f
@ -162,10 +162,12 @@ void VideoWidgetPrivate::stateChanged(Phonon::State newState, Phonon::State oldS
|
||||
{
|
||||
Q_UNUSED(oldState)
|
||||
|
||||
if (newState == Phonon::PlayingState) {
|
||||
playPauseButton->setIcon("media-playback-pause");
|
||||
} else {
|
||||
playPauseButton->setIcon("media-playback-start");
|
||||
if (playPauseButton) {
|
||||
if (newState == Phonon::PlayingState) {
|
||||
playPauseButton->setIcon("media-playback-pause");
|
||||
} else {
|
||||
playPauseButton->setIcon("media-playback-start");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user