diff --git a/src/lib/dbus/Connection.hxx b/src/lib/dbus/Connection.hxx index 43347070d..b42b9d582 100644 --- a/src/lib/dbus/Connection.hxx +++ b/src/lib/dbus/Connection.hxx @@ -76,6 +76,10 @@ public: return c; } + operator DBusConnection &() noexcept { + return *c; + } + operator bool() const noexcept { return c != nullptr; }