I had a function like this:
QDBusObjectPath Daemon::getTid()
{
    // Where CreateTransaction
    // returns a QDBusPendingReply<QDBusObjectPath>
    return d->daemon->CreateTransaction();;
}
This code crashes if the called interface is not available
because value() doesn't return a default constructed value
as it doesn't check if is valid, doing a argumentAt<0> and
there isn't such argument.
It should behave like QDBusReply::value()
Thanks.
| For Gerrit Dashboard: QTBUG-29046 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 44575,3 | Make QDBusPendingReply behave like QDBusReply when dealing with errors | dev | qt/qtbase | Status: MERGED | +2 | 0 |