diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/signal.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libcamera/signal.cpp b/src/libcamera/signal.cpp index 53c18535..ab7dba50 100644 --- a/src/libcamera/signal.cpp +++ b/src/libcamera/signal.cpp @@ -57,9 +57,15 @@ namespace libcamera { * passed through the signal will remain valid after the signal is emitted. */ +void SlotBase::disconnect(SignalBase *signal) +{ + if (object_) + object_->disconnect(signal); +} + void SlotBase::activatePack(void *pack) { - Object *obj = static_cast<Object *>(obj_); + Object *obj = static_cast<Object *>(object_); if (Thread::current() == obj->thread()) { invokePack(pack); |