summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2004-09-21 16:01:21 (UTC)
committer zecke <zecke>2004-09-21 16:01:21 (UTC)
commit56f3bcad1a0abd199a458a62c8bde0ebdff035d5 (patch) (side-by-side diff)
tree9f81f2d9ae430f98079149f53dd86eddd09ceec8 /libopie2
parent97e20b7cc746d5e2822385fc815739853a9c6e2f (diff)
downloadopie-56f3bcad1a0abd199a458a62c8bde0ebdff035d5.zip
opie-56f3bcad1a0abd199a458a62c8bde0ebdff035d5.tar.gz
opie-56f3bcad1a0abd199a458a62c8bde0ebdff035d5.tar.bz2
Only disconnect from sender if sender() is valid
Diffstat (limited to 'libopie2') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp2
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
@@ -782,3 +782,5 @@ void ODevice::remPreHandler(QWSServer::KeyboardFilter*aFilter)
void ODevice::playingStopped() {
+ if ( sender() )
const_cast<QObject*>(sender())->disconnect( this );
+
#ifndef QT_NO_SOUND