diff --git a/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h b/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h index 187af0df9d..63d169f704 100644 --- a/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h +++ b/vendor/DOtherSide/lib/include/DOtherSide/DOtherSide.h @@ -86,7 +86,7 @@ DOS_API void DOS_CALL dos_qguiapplication_delete(void); /// \brief Create a QApplication /// \note The created QApplication should be freed by calling dos_qapplication_delete() -DOS_API void DOS_CALL dos_qapplication_create(void); +DOS_API void DOS_CALL dos_qapplication_create(char *filename); /// \brief Calls the QApplication::exec() function of the current QGuiApplication /// \note A QApplication should have been already created through dos_qapplication_create() diff --git a/vendor/DOtherSide/lib/src/DOtherSide.cpp b/vendor/DOtherSide/lib/src/DOtherSide.cpp index b19bd5b5d5..8addf4abaa 100644 --- a/vendor/DOtherSide/lib/src/DOtherSide.cpp +++ b/vendor/DOtherSide/lib/src/DOtherSide.cpp @@ -101,11 +101,10 @@ void dos_qguiapplication_quit() qGuiApp->quit(); } -void dos_qapplication_create() +void dos_qapplication_create(char *appName) { static int argc = 1; - static char empty[1] = {0}; - static char *argv[] = {empty}; + static char *argv[] = {appName}; register_meta_types(); diff --git a/vendor/DOtherSide/test/test_dotherside.cpp b/vendor/DOtherSide/test/test_dotherside.cpp index 7ae79b3829..27a56086a8 100644 --- a/vendor/DOtherSide/test/test_dotherside.cpp +++ b/vendor/DOtherSide/test/test_dotherside.cpp @@ -75,7 +75,7 @@ private slots: void testExecution() { bool quit = false; - dos_qapplication_create(); + dos_qapplication_create("test"); QTimer::singleShot(100, [&quit]() { quit = true; dos_qapplication_quit();