From: Than Ngo Date: Tue, 22 Aug 2023 13:42:24 +0000 (+0100) Subject: fixes segfault on Assistant's startup X-Git-Tag: archive/raspbian/4%4.8.7+dfsg-18+rpi1+deb10u2^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9e3865a39f447cb8d0e2607045660156b4c2b601;p=qt4-x11.git fixes segfault on Assistant's startup Origin: https://bugreports.qt-project.org/browse/QTBUG-25324 Bug: https://bugreports.qt-project.org/browse/QTBUG-25324 Bug-Debian: http://bugs.debian.org/679874 Forwarded: not-needed Last-Update: 2012-06-20 This patch calls the static method QApplication::allWidgets() intead of storing them first. Gbp-Pq: Name QTBUG-25324_assistant_segfault_on_start_with_gcc_4.7.patch --- diff --git a/tools/assistant/tools/assistant/mainwindow.cpp b/tools/assistant/tools/assistant/mainwindow.cpp index bbf9b8e2d..75510fad9 100644 --- a/tools/assistant/tools/assistant/mainwindow.cpp +++ b/tools/assistant/tools/assistant/mainwindow.cpp @@ -947,8 +947,7 @@ void MainWindow::updateApplicationFont() if (helpEngine.usesAppFont()) font = helpEngine.appFont(); - const QWidgetList &widgets = qApp->allWidgets(); - foreach (QWidget* widget, widgets) + foreach (QWidget* widget, QApplication::allWidgets()) widget->setFont(font); }