aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickdrawer.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-11-01 10:52:32 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-02-22 09:19:46 +0000
commitfeed3b7b8077f2c9bba72c49e249fb96c262d72e (patch)
treefb8f745bfb17efbcfaf83b6f40c8f5e689008c2e /src/quicktemplates2/qquickdrawer.cpp
parent16836da1ae44c11317b9861764ea55cce39eac02 (diff)
Drawer: fix infinite positioning loop
This fixes the issue where Drawer would try to reposition itself forever, but does not address the fact that it is incorrectly positioned afterwards. Task-number: QTBUG-71290 Change-Id: Ibbd4baa84b66ab446ce3af2ef326f8c50e74216d Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdrawer.cpp')
-rw-r--r--src/quicktemplates2/qquickdrawer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdrawer.cpp b/src/quicktemplates2/qquickdrawer.cpp
index 95b27512..9cc38791 100644
--- a/src/quicktemplates2/qquickdrawer.cpp
+++ b/src/quicktemplates2/qquickdrawer.cpp
@@ -222,6 +222,9 @@ QQuickPopupPositioner *QQuickDrawerPrivate::getPositioner()
void QQuickDrawerPositioner::reposition()
{
+ if (m_positioning)
+ return;
+
QQuickDrawer *drawer = static_cast<QQuickDrawer*>(popup());
QQuickWindow *window = drawer->window();
if (!window)