mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
From Qt 5.15.2 to 5.15.10, Accessibility freeze the application on Windows: Deactivate handlers.
Update SDK to 5.2.97
This commit is contained in:
parent
46fb6a7085
commit
98f11b56e2
3 changed files with 23 additions and 4 deletions
|
|
@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## 5.1.1 - 2023-08-24
|
||||
|
||||
### Fixed
|
||||
- Windows freeze on Accessibility and with Qt < 5.15.10
|
||||
- Update SDK to 5.2.97
|
||||
|
||||
## 5.1.0 - 2023-08-23
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "AppController.hpp"
|
||||
#include <qloggingcategory.h>
|
||||
|
||||
#ifdef QT_QML_DEBUG
|
||||
#include <QQmlDebuggingEnabler>
|
||||
#endif
|
||||
|
|
@ -36,6 +37,15 @@ FILE * gStream = NULL;
|
|||
#include "components/vfs/VfsUtils.hpp"
|
||||
#endif
|
||||
|
||||
#if _WIN32 && QT_VERSION < QT_VERSION_CHECK(5, 15, 10)
|
||||
// From 5.15.2 to 5.15.10, Accessibility freeze the application on Windows: Deactivate handlers.
|
||||
#define ACCESSBILITY_WORKAROUND
|
||||
#include <QAccessibleEvent>
|
||||
#include <QAccessible>
|
||||
void DummyUpdateHandler(QAccessibleEvent* event) {}
|
||||
void DummyRootObjectHandler(QObject*) {}
|
||||
#endif
|
||||
|
||||
// =============================================================================
|
||||
|
||||
void cleanStream(){
|
||||
|
|
@ -48,8 +58,6 @@ void cleanStream(){
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
int main (int argc, char *argv[]) {
|
||||
#ifdef __APPLE__
|
||||
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1"); // On Mac, set this workaround to avoid glitches on M1, because of https://bugreports.qt.io/browse/QTBUG-89379
|
||||
|
|
@ -83,7 +91,12 @@ int main (int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
qInfo() << QStringLiteral("Running app...");
|
||||
|
||||
|
||||
#ifdef ACCESSBILITY_WORKAROUND
|
||||
QAccessible::installUpdateHandler(DummyUpdateHandler);
|
||||
QAccessible::installRootObjectHandler(DummyRootObjectHandler);
|
||||
#endif
|
||||
|
||||
int ret;
|
||||
do {
|
||||
app->initContentApp();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 599eb672c7e7d125dcd29ff21adfcc34f0f79306
|
||||
Subproject commit 9d19f5688956ef89c65306c667a1cca8c9a8cd54
|
||||
Loading…
Add table
Reference in a new issue