aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-11-25 11:32:59 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-11-25 11:32:59 +0200
commit0b4a5786bb5442a309c22e534e62ab1082588300 (patch)
tree55ae538eb4e99f2ca55de324b114ad097d5144b2 /src
parenta7dc03223e915d7afb30498fe5faa12b5402f7d8 (diff)
Use window() instead of obsolete topLevelWidget()
Diffstat (limited to 'src')
-rw-r--r--src/qt/guiutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index 0e9aca21b1..2fc166b0c5 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -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)