diff -r f6d44a0cd476 -r 13331705e488 videocollection/videocollectionview/tsrc/testvideolistselectiondialog/inc/videolistselectiondialogtester.h --- a/videocollection/videocollectionview/tsrc/testvideolistselectiondialog/inc/videolistselectiondialogtester.h Fri May 28 09:45:19 2010 +0300 +++ b/videocollection/videocollectionview/tsrc/testvideolistselectiondialog/inc/videolistselectiondialogtester.h Fri Jun 11 09:44:20 2010 +0300 @@ -91,16 +91,19 @@ void disconnectSignals() { - disconnect(this, SIGNAL(markAllSignal(int)), mTestable, SLOT(markAllStateChangedSlot(int))); - disconnect(this, SIGNAL(selectionChangedSignal(const QItemSelection&, const QItemSelection&)), - mTestable, SLOT(selectionChangedSlot(const QItemSelection&, const QItemSelection&))); - disconnect(this, SIGNAL(singleItemSelectedSignal(const QModelIndex&)), - mTestable, SLOT(singleItemSelectedSlot(const QModelIndex&))); - disconnect(this, SIGNAL(modelReadySignal()), mTestable, SLOT(modelReadySlot())); - disconnect(this, SIGNAL(updateCounterSignal()), mTestable, SLOT(updateCounterSlot())); - disconnect(this, SIGNAL(primaryActionTriggeredSignal()), - mTestable, SLOT(primaryActionTriggeredSlot())); - disconnect(this, SIGNAL(finishedSignal(HbAction*)), mTestable, SLOT(finishedSlot(HbAction*))); + if(mTestable) + { + disconnect(this, SIGNAL(markAllSignal(int)), mTestable, SLOT(markAllStateChangedSlot(int))); + disconnect(this, SIGNAL(selectionChangedSignal(const QItemSelection&, const QItemSelection&)), + mTestable, SLOT(selectionChangedSlot(const QItemSelection&, const QItemSelection&))); + disconnect(this, SIGNAL(singleItemSelectedSignal(const QModelIndex&)), + mTestable, SLOT(singleItemSelectedSlot(const QModelIndex&))); + disconnect(this, SIGNAL(modelReadySignal()), mTestable, SLOT(modelReadySlot())); + disconnect(this, SIGNAL(updateCounterSignal()), mTestable, SLOT(updateCounterSlot())); + disconnect(this, SIGNAL(primaryActionTriggeredSignal()), + mTestable, SLOT(primaryActionTriggeredSlot())); + disconnect(this, SIGNAL(finishedSignal(HbAction*)), mTestable, SLOT(finishedSlot(HbAction*))); + } } void emitMarkAllStateChanged(int state)