Ticket #46496: dbus_correct_signal_name_disconnect.patch

File dbus_correct_signal_name_disconnect.patch, 1.1 KB (added by RJVB (René Bertin), 10 years ago)

from Ubuntu

  • qtbase/src/dbus/qdbusintegrator.cpp

    From 2160e7e0b7842d4ef49fdd435b4a7f127d479b90 Mon Sep 17 00:00:00 2001
    From: Jakub Adam <jakub.adam@jollamobile.com>
    Date: Wed, 4 Jun 2014 14:48:02 +0200
    Subject: [PATCH] Use correct signal name when disconnecting "NameOwnerChanged"
    
    A disconnectSignal() call with a wrong signal name caused that hook
    wasn't found and thus kept in QDBusConnectionPrivate::signalHooks
    forever.
    
    Change-Id: Id7cda225be7580529fc835b377636226abb229f9
    ---
     src/dbus/qdbusintegrator.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
     
    22662266                    watchedServices.erase(sit);
    22672267                    disconnectSignal(dbusServiceString(), QString(), dbusInterfaceString(),
    22682268                                  QLatin1String("NameOwnerChanged"), QStringList() << hook.service, QString(),
    2269                                   this, SLOT(_q_serviceOwnerChanged(QString,QString,QString)));
     2269                                  this, SLOT(serviceOwnerChangedNoLock(QString,QString,QString)));
    22702270                }
    22712271            }
    22722272        }