aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickpopup.cpp')
-rw-r--r--src/quicktemplates2/qquickpopup.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/quicktemplates2/qquickpopup.cpp b/src/quicktemplates2/qquickpopup.cpp
index 08b3ee63..53af9ec0 100644
--- a/src/quicktemplates2/qquickpopup.cpp
+++ b/src/quicktemplates2/qquickpopup.cpp
@@ -644,10 +644,9 @@ void QQuickPopupPrivate::setBottomMargin(qreal value, bool reset)
*/
QQuickPopupAnchors *QQuickPopupPrivate::getAnchors()
{
- if (!anchors) {
- Q_Q(QQuickPopup);
- anchors = new QQuickPopupAnchors(positioner, q);
- }
+ Q_Q(QQuickPopup);
+ if (!anchors)
+ anchors = new QQuickPopupAnchors(q);
return anchors;
}