Fixed typo
This commit is contained in:
parent
7010c66c05
commit
5d6d1791c8
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ void DBusAsyncResponse::setPendingCall(QVariant variant)
|
|||
{
|
||||
if (QDBusPendingCall *call = const_cast<QDBusPendingCall *>(DBusResponseWaiter::instance()->extractPendingCall(variant))) {
|
||||
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(*call);
|
||||
watcher->setProperty("pengingCallVariant", variant);
|
||||
watcher->setProperty("pendingCallVariant", variant);
|
||||
connect(watcher, &QDBusPendingCallWatcher::finished, this, &DBusAsyncResponse::onCallFinished);
|
||||
connect(watcher, &QDBusPendingCallWatcher::finished, watcher, &QObject::deleteLater);
|
||||
connect(&m_timeout, &QTimer::timeout, watcher, &QObject::deleteLater);
|
||||
|
@ -79,7 +79,7 @@ void DBusAsyncResponse::setPendingCall(QVariant variant)
|
|||
void DBusAsyncResponse::onCallFinished(QDBusPendingCallWatcher *watcher)
|
||||
{
|
||||
m_timeout.stop();
|
||||
QVariant variant = watcher->property("pengingCallVariant");
|
||||
QVariant variant = watcher->property("pendingCallVariant");
|
||||
|
||||
if (QDBusPendingCall *call = const_cast<QDBusPendingCall *>(DBusResponseWaiter::instance()->extractPendingCall(variant))) {
|
||||
if (call->isError()) {
|
||||
|
|
Loading…
Reference in a new issue