summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subsurface-helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp
index 65a6e9630..96e984520 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -110,6 +110,7 @@ void run_ui()
ctxt->setContextProperty("connectionListModel", &connectionListModel);
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
+ ctxt->setContextProperty("subsurfaceTheme", ThemeInterface::instance());
qmlRegisterUncreatableType<QMLManager>("org.subsurfacedivelog.mobile",1,0,"ExportType","Enum is not a type");
@@ -199,7 +200,6 @@ void register_qml_types(QQmlEngine *engine)
// Register qml interface classes
QMLInterface::setup(ct);
- ct->setContextProperty("subsurfaceTheme", ThemeInterface::instance());
}
REGISTER_TYPE(QMLManager, "QMLManager");