qtbug-77364.patch 583 B

12345678910111213
  1. diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
  2. index 04290a4ce1..27773d5762 100644
  3. --- a/src/widgets/kernel/qwidget.cpp
  4. +++ b/src/widgets/kernel/qwidget.cpp
  5. @@ -6446,7 +6446,7 @@ void QWidget::setFocusProxy(QWidget * w)
  6. if (changingAppFocusWidget) {
  7. QWidget *newDeepestFocusProxy = d_func()->deepestFocusProxy();
  8. - QApplicationPrivate::focus_widget = newDeepestFocusProxy ? newDeepestFocusProxy : this;
  9. + QApplicationPrivate::setFocusWidget(newDeepestFocusProxy ? newDeepestFocusProxy : this, Qt::NoFocusReason);
  10. }
  11. }