diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-15 12:40:24 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-15 12:40:24 -0500 |
commit | cad05aaaa116db2e7a326eca73d9167f256b187d (patch) | |
tree | 1c402a1d378b625db7b055501eb0299d79a1017e /tqdbuserror.cpp | |
parent | 6dd1ccf1d36456f863eb6c0f0acc564f78fc5da8 (diff) | |
download | dbus-1-tqt-cad05aaaa116db2e7a326eca73d9167f256b187d.tar.gz dbus-1-tqt-cad05aaaa116db2e7a326eca73d9167f256b187d.zip |
Fix failure to report DBUS non-fatal errors
Diffstat (limited to 'tqdbuserror.cpp')
-rw-r--r-- | tqdbuserror.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tqdbuserror.cpp b/tqdbuserror.cpp index 1c921aa..c2c87ed 100644 --- a/tqdbuserror.cpp +++ b/tqdbuserror.cpp @@ -113,11 +113,11 @@ static TQT_DBusError::ErrorType qDBusErrorTypeForName(const TQString& name) return TQT_DBusError::UserDefined; } -TQT_DBusError::TQT_DBusError() : errorType(InvalidError) +TQT_DBusError::TQT_DBusError() : errorType(InvalidError), m_dbusErrorSet(false) { } -TQT_DBusError::TQT_DBusError(const DBusError *error) : errorType(InvalidError) +TQT_DBusError::TQT_DBusError(const DBusError *error) : errorType(InvalidError), m_dbusErrorSet(false) { if (!error || !dbus_error_is_set(error)) return; @@ -129,7 +129,7 @@ TQT_DBusError::TQT_DBusError(const DBusError *error) : errorType(InvalidError) } TQT_DBusError::TQT_DBusError(const TQString& error, const TQString& message) - : errorType(UserDefined), nm(error), msg(message) + : errorType(UserDefined), m_dbusErrorSet(false), nm(error), msg(message) { errorType = qDBusErrorTypeForName(nm); } @@ -140,7 +140,7 @@ bool TQT_DBusError::isValid() const } TQT_DBusError::TQT_DBusError(ErrorType type, const TQString& message) - : errorType(type), msg(message) + : errorType(type), m_dbusErrorSet(false), msg(message) { nm = qDBusErrorNameForType(type); } |