playPauseButton doesn't always exist, crash--
svn path=/trunk/KDE/kdelibs/; revision=1002603
This commit is contained in:
parent
a3a97eec7d
commit
9e278bbe78
@ -162,12 +162,14 @@ void VideoWidgetPrivate::stateChanged(Phonon::State newState, Phonon::State oldS
|
|||||||
{
|
{
|
||||||
Q_UNUSED(oldState)
|
Q_UNUSED(oldState)
|
||||||
|
|
||||||
|
if (playPauseButton) {
|
||||||
if (newState == Phonon::PlayingState) {
|
if (newState == Phonon::PlayingState) {
|
||||||
playPauseButton->setIcon("media-playback-pause");
|
playPauseButton->setIcon("media-playback-pause");
|
||||||
} else {
|
} else {
|
||||||
playPauseButton->setIcon("media-playback-start");
|
playPauseButton->setIcon("media-playback-start");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void VideoWidgetPrivate::animateControlWidget(bool show)
|
void VideoWidgetPrivate::animateControlWidget(bool show)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user