Skip to content

Commit

Permalink
Fix wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jun 25, 2024
1 parent a8359c9 commit 175fb96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,10 @@ int start(int argc, char *argv[], ConsoleOutputFiles& consoleOutputFiles)
return 2;
}

QObject* mainWindow = rootObjects.first();

#ifndef Q_OS_WASM
auto rootObjects = engine.rootObjects();
QObject* mainWindow = rootObjects.first();

QObject::connect(&app, &ApplicationClass::messageReceived,
mainWindow, [mainWindow](const QString& message, QObject*)
Expand Down

0 comments on commit 175fb96

Please sign in to comment.