summaryrefslogtreecommitdiffstats
path: root/qt/qdbusconnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/qdbusconnection.cpp')
-rw-r--r--qt/qdbusconnection.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/qt/qdbusconnection.cpp b/qt/qdbusconnection.cpp
index 49acc247..f5e1bf37 100644
--- a/qt/qdbusconnection.cpp
+++ b/qt/qdbusconnection.cpp
@@ -307,10 +307,11 @@ QString QDBusConnection::baseService() const
bool QDBusConnection::requestName(const QString &name, NameRequestMode mode)
{
- static const int DBusModes[] = { 0, DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT,
+ //FIXME: DBUS_NAME_FLAGS_* are bit fields not enumeration
+ static const int DBusModes[] = { 0, DBUS_NAME_FLAG_ALLOW_REPLACEMENT,
DBUS_NAME_FLAG_REPLACE_EXISTING };
- Q_ASSERT(mode == 0 || mode == DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT ||
- mode == DBUS_NAME_FLAG_REPLACE_EXISTING);
+ Q_ASSERT(mode == 0 || mode == AllowReplace ||
+ mode == ReplaceExisting );
DBusError error;
dbus_error_init (&error);