aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b85c3fc..a72e42b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -36,6 +36,7 @@
#include <QQuickStyle>
#include <signal.h>
+#include "DBusAPI.h"
#include "RWADBusAdaptor.cpp"
#include "session.h"
#include "scenes/add_server_wizard/add_server_wizard.h"
@@ -82,9 +83,8 @@ int main(int argc, char *argv[]) {
QQmlApplicationEngine engine(&app);
- QScopedPointer<MainQMLAdaptor> main_gui (new MainQMLAdaptor(&app, &engine));
-
// Make mainqmladaptor available to QML
+ QScopedPointer<MainQMLAdaptor> main_gui (new MainQMLAdaptor(&app, &engine));
engine.rootContext()->setContextProperty("mainqmladaptor", main_gui.data());
QScopedPointer<DBusAPI> _dbus_api (new DBusAPI());