aboutsummaryrefslogtreecommitdiff
path: root/src/scenes
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-08 15:55:53 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-08 15:55:53 +0200
commit36dcf4b27450f04ac60a05cd2837c1b58fd5b24a (patch)
treed234242b8db0195fdee5b832e048a142a28f37fd /src/scenes
parent0f73c7ff3f8a84bcacf077644d6a199301f58945 (diff)
downloadRWA.Support.DesktopApp-36dcf4b27450f04ac60a05cd2837c1b58fd5b24a.tar.gz
RWA.Support.DesktopApp-36dcf4b27450f04ac60a05cd2837c1b58fd5b24a.tar.bz2
RWA.Support.DesktopApp-36dcf4b27450f04ac60a05cd2837c1b58fd5b24a.zip
Classes share one specific D-Bus object now.
Diffstat (limited to 'src/scenes')
-rw-r--r--src/scenes/add_server_wizard/add_server_wizard.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scenes/add_server_wizard/add_server_wizard.cpp b/src/scenes/add_server_wizard/add_server_wizard.cpp
index 09db898..a5bee47 100644
--- a/src/scenes/add_server_wizard/add_server_wizard.cpp
+++ b/src/scenes/add_server_wizard/add_server_wizard.cpp
@@ -27,10 +27,12 @@
#include "../../RWADBusAdaptor.h"
#include "../../RWAHost.h"
-Add_Server_wizard::Add_Server_wizard(QObject *parent, MainQMLAdaptor *main_gui) : QObject(parent) {
+Add_Server_wizard::Add_Server_wizard(QObject *parent,
+ MainQMLAdaptor *main_gui, DBusAPI *dbus_api) : QObject(parent) {
Q_ASSERT(main_gui != nullptr);
+ Q_ASSERT(dbus_api != nullptr);
- _dbus_api = new DBusAPI();
+ _dbus_api = dbus_api;
_main_gui = main_gui;
// _dbus_api --serviceAddWebAppHostResponse-> this.add_web_app_host_response()