1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-02 22:55:27 +02:00

misc: fix argument warning for non-debug builds

The `test` option is not used in non-debug builds.

Change-Id: I25eef5b414f987ae4acc435213173f8c78390866
This commit is contained in:
Andreas Traczyk 2024-04-08 18:14:43 -04:00
parent 5b92e4708a
commit bd45d6a406

View file

@ -425,7 +425,8 @@ MainApplication::initQmlLayer()
&screenInfo_,
this);
QUrl url;
QUrl url = u"qrc:/MainApplicationWindow.qml"_qs;
#ifdef QT_DEBUG
if (parser_.isSet("test")) {
// List the QML files in the project source tree.
const auto targetTestComponent = findResource(parser_.value("test"));
@ -439,9 +440,8 @@ MainApplication::initQmlLayer()
engine_->rootContext()->setContextProperty("testWidth", testWidth);
engine_->rootContext()->setContextProperty("testHeight", testHeight);
url = u"qrc:/ComponentTestWindow.qml"_qs;
} else {
url = u"qrc:/MainApplicationWindow.qml"_qs;
}
#endif
QObject::connect(
engine_.get(),
&QQmlApplicationEngine::objectCreationFailed,