mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
From Qt 5.15.2 to 5.15.10, Accessibility freeze the application on Windows: Deactivate handlers.
This commit is contained in:
parent
0614c26a04
commit
42b898c13c
3 changed files with 34 additions and 6 deletions
19
CHANGELOG.md
19
CHANGELOG.md
|
|
@ -4,7 +4,14 @@ 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.0 - undefined
|
||||
|
||||
## 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
|
||||
- Primary color for links in chat.
|
||||
|
|
@ -42,7 +49,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Removed
|
||||
- Picture zoom on mouse over.
|
||||
|
||||
## 5.0.17 - undefined
|
||||
## 5.0.18 - 2023-06-16
|
||||
|
||||
### Fixed
|
||||
- Robot voice with some devices (SDK fix).
|
||||
- Crash from Lime db failure (SDK fix).
|
||||
- Loading optimization (SDK fix).
|
||||
- Update SDK to 5.2.75
|
||||
|
||||
## 5.0.17 - 2023-06-01
|
||||
|
||||
### Fixed
|
||||
- Section date timezone and conferences timezone.
|
||||
|
|
|
|||
|
|
@ -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 8613ac7500b279d300180b206a71f562332101ee
|
||||
Subproject commit b4e83802c9d24ec019edcf14d90834f304f7c44e
|
||||
Loading…
Add table
Reference in a new issue