-rw-r--r-- | libopie2/opiecore/device/odevice.cpp | 4 |
1 files changed, 3 insertions, 1 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 @@ -782,3 +782,5 @@ void ODevice::remPreHandler(QWSServer::KeyboardFilter*aFilter) void ODevice::playingStopped() { - const_cast<QObject*>(sender())->disconnect( this ); + if ( sender() ) + const_cast<QObject*>(sender())->disconnect( this ); + #ifndef QT_NO_SOUND |