diff --git a/src/declarativeimports/core/dialog.cpp b/src/declarativeimports/core/dialog.cpp index 812f565ac..b225a313d 100644 --- a/src/declarativeimports/core/dialog.cpp +++ b/src/declarativeimports/core/dialog.cpp @@ -444,16 +444,16 @@ void DialogProxy::setAttribute(int attribute, bool on) void DialogProxy::focusInEvent(QFocusEvent *ev) { - Q_UNUSED(ev) m_activeWindow = true; emit activeWindowChanged(); + QQuickWindow::focusInEvent(ev); } void DialogProxy::focusOutEvent(QFocusEvent *ev) { - Q_UNUSED(ev) m_activeWindow = false; emit activeWindowChanged(); + QQuickWindow::focusOutEvent(ev); } #include "dialog.moc"