-rw-r--r-- | libopie2/opiecore/device/odevice.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index ec861ee..b5ae4e5 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp | |||
@@ -777,13 +777,15 @@ void ODevice::remPreHandler(QWSServer::KeyboardFilter*aFilter) | |||
777 | /** | 777 | /** |
778 | * @internal | 778 | * @internal |
779 | * | 779 | * |
780 | * @see changeMixerForAlarm | 780 | * @see changeMixerForAlarm |
781 | */ | 781 | */ |
782 | void ODevice::playingStopped() { | 782 | void ODevice::playingStopped() { |
783 | if ( sender() ) | ||
783 | const_cast<QObject*>(sender())->disconnect( this ); | 784 | const_cast<QObject*>(sender())->disconnect( this ); |
785 | |||
784 | #ifndef QT_NO_SOUND | 786 | #ifndef QT_NO_SOUND |
785 | if ( d->m_sound >= 0 ) { | 787 | if ( d->m_sound >= 0 ) { |
786 | ::ioctl ( d->m_sound, MIXER_WRITE( d->m_mixer ), &d->m_vol ); | 788 | ::ioctl ( d->m_sound, MIXER_WRITE( d->m_mixer ), &d->m_vol ); |
787 | ::close ( d->m_sound ); | 789 | ::close ( d->m_sound ); |
788 | } | 790 | } |
789 | #endif | 791 | #endif |