Skip to content

Commit

Permalink
Use window() instead of obsolete topLevelWidget()
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Nov 25, 2018
1 parent a7dc032 commit 0b4a578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ bool checkPoint(const QPoint &p, const QWidget *w)
{
QWidget *atW = QApplication::widgetAt(w->mapToGlobal(p));
if (!atW) return false;
return atW->topLevelWidget() == w;
return atW->window() == w;
}

bool isObscured(QWidget *w)
Expand Down

0 comments on commit 0b4a578

Please sign in to comment.