0
0
Fork 0
mirror of https://github.com/mumble-voip/mumble.git synced 2025-02-05 05:19:56 +00:00
mumble-voip_mumble/scripts
Robert Adam 7271bcaf05 FIX(server): Respect Qt's desired initialization order
In a Qt application, the QApplication object should be the first QObject
that is created. However, the `Meta` class used to have a static member
called `mp`, which means that this member gets initialized _before_
main() runs and therefore before the QApplication is created.

This has caused an "Invalid nullptr in QObject::connect" warning
somewhere in Qt's internals (since the move to Qt 6). The impact of this
warning is unclear at this point.

This commit makes the mp parameter a std::unique_ptr that gets
explicitly initialized in the main function (more or less right after
the QApplication object is created). This guarantees that the MetaParams
object does not get created before the QApplication object, fixing the
observed warning.

It is worth noting that we do have a couple of other static QObject
variables in the main translation unit, but these seem to be
inconsequential (at least they don't seem to trigger a similar warning).

Fixes #6669
2025-01-11 17:56:39 +01:00
..
commitMessage MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
backportTranslations.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
create_source_archive.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate-ApplicationPalette-class.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate-ffdhe.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate-mumble_qt-qrc.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate_changelog.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate_cmake_options_docs.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate_configure_cmake_script.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate_flag_qrc.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generate_license_header.py BREAK(server): Remove DBus support 2024-09-30 19:18:40 +02:00
generate_mumble_ico.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
generateIceWrapper.py FIX(server): Respect Qt's desired initialization order 2025-01-11 17:56:39 +01:00
mumble-build-number.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
mumble-version.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
runClangFormat.sh MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
sign_macOS.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00
updatetranslations.py MAINT: Remove copyright year from all copyright notices 2024-09-30 18:06:20 +02:00