From 7a3c06fe7fa9a7dba8a142a63b1c1a2eba1e2edd Mon Sep 17 00:00:00 2001 From: Stefan Wildemann Date: Thu, 6 Apr 2017 15:03:48 +0200 Subject: Fix: register the QML RRC. To not let the resources be optimized out if you compile navit without modules, they need to be registered on module init. --- navit/graphics/qt5/graphics_qt5.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/navit/graphics/qt5/graphics_qt5.cpp b/navit/graphics/qt5/graphics_qt5.cpp index c7408690d..37fda3d66 100644 --- a/navit/graphics/qt5/graphics_qt5.cpp +++ b/navit/graphics/qt5/graphics_qt5.cpp @@ -1003,6 +1003,9 @@ graphics_qt5_new(struct navit *nav, struct graphics_methods *meth, struct attr * void plugin_init(void) { +#if USE_QML + Q_INIT_RESOURCE(graphics_qt5); +#endif // dbg(lvl_debug,"enter\n"); plugin_register_category_graphics("qt5", graphics_qt5_new); qt5_event_init(); -- cgit v1.2.1