on xenial help sign in
Hack a solution to the Q_ASSERT
commitf8ccd9f1ea0ac7e00a9e1dbdc8343dae347cb3d5 authorJosh Arenson <joshua.arenson@canonical.com> dateFri 18 Sep 2015, 16:42 (11 years ago) parent162c7f9
1 file changed+5−1
plugins/LightDM/plugin.cpp+5−1
plugins/LightDM/plugin.cpp+5−1
@@ -59,7 +59,11 @@ void PLUGIN_CLASSNAME::registerTypes(const char *uri)
5959 qmlRegisterType<QAbstractItemModel>();
6060 qmlRegisterType<UserMetricsOutput::ColorTheme>();
6161
62− Q_ASSERT(uri == QLatin1String("PLUGIN_CLASSNAME"));
62+#if defined INTEGRATED_LIGHTDM
63+ Q_ASSERT(uri == QLatin1String("LightDM.IntegratedLightDM"));
64+#elif defined FULL_LIGHTDM
65+ Q_ASSERT(uri == QLatin1String("LightDM.FullLightDM"));
66+#endif
6367 qRegisterMetaType<QLightDM::Greeter::MessageType>("QLightDM::Greeter::MessageType");
6468 qRegisterMetaType<QLightDM::Greeter::PromptType>("QLightDM::Greeter::PromptType");
6569