From 57e195baa4f2a6a783646b9705addd2c1f6686e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 21 Jun 2023 16:58:29 +0200 Subject: [PATCH] use auto* pFocusWidget --- src/library/dlgtrackinfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/library/dlgtrackinfo.cpp b/src/library/dlgtrackinfo.cpp index c28cb1f6cf29..22ce3ad5e6af 100644 --- a/src/library/dlgtrackinfo.cpp +++ b/src/library/dlgtrackinfo.cpp @@ -557,10 +557,10 @@ void DlgTrackInfo::saveTrack() { // This hack makes a focused QLineEdit emit editingFinished() (clearFocus() // implicitly emits a focusOutEvent() if (this == QApplication::activeWindow()) { - auto focusWidget = QApplication::focusWidget(); - if (focusWidget) { - focusWidget->clearFocus(); - focusWidget->setFocus(); + auto* pFocusWidget = QApplication::focusWidget(); + if (pFocusWidget) { + pFocusWidget->clearFocus(); + pFocusWidget->setFocus(); } }