Skip to content

Commit 0b4a578

Browse files
committed
Use window() instead of obsolete topLevelWidget()
1 parent a7dc032 commit 0b4a578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/guiutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ bool checkPoint(const QPoint &p, const QWidget *w)
339339
{
340340
QWidget *atW = QApplication::widgetAt(w->mapToGlobal(p));
341341
if (!atW) return false;
342-
return atW->topLevelWidget() == w;
342+
return atW->window() == w;
343343
}
344344

345345
bool isObscured(QWidget *w)

0 commit comments

Comments
 (0)