diff --git a/src/libs/utils/variablechooser.cpp b/src/libs/utils/variablechooser.cpp index 022df96fec2..51ad12f524f 100644 --- a/src/libs/utils/variablechooser.cpp +++ b/src/libs/utils/variablechooser.cpp @@ -544,7 +544,7 @@ void VariableChooserPrivate::updatePositionAndShow(bool) { if (QWidget *w = q->parentWidget()) { QPoint parentCenter = w->mapToGlobal(w->geometry().center()); - q->move(parentCenter.x() - q->width()/2, parentCenter.y() - q->height()/2); + q->move(parentCenter.x() - q->width()/2, qMax(parentCenter.y() - q->height()/2, 0)); } q->show(); q->raise();