Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/dbus/qdbusabstractinterface.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4343#include "qdbusabstractinterface_p.h"
    4444
     45#include <qthread.h>
     46
    4547#include "qdbusargument.h"
    4648#include "qdbuspendingcall.h"
     
    5153
    5254#include <qdebug.h>
     55
     56#ifndef QT_NO_DBUS
    5357
    5458QT_BEGIN_NAMESPACE
     
    439443
    440444    QDBusMessage reply = d->connection.call(msg, mode);
    441     d->lastError = reply;       // will clear if reply isn't an error
     445    if (thread() == QThread::currentThread())
     446        d->lastError = reply;       // will clear if reply isn't an error
    442447
    443448    // ensure that there is at least one element
     
    556561        return;
    557562
    558     // we end up recursing here, so optimise away
     563    // we end up recursing here, so optimize away
    559564    if (qstrcmp(signal + 1, "destroyed(QObject*)") == 0)
    560565        return;
     
    766771QT_END_NAMESPACE
    767772
     773#endif // QT_NO_DBUS
     774
    768775#include "moc_qdbusabstractinterface.cpp"
Note: See TracChangeset for help on using the changeset viewer.