diff --git a/src/lib/navigation/locationbarpopup.cpp b/src/lib/navigation/locationbarpopup.cpp index c8f37180e..06ed80e2f 100644 --- a/src/lib/navigation/locationbarpopup.cpp +++ b/src/lib/navigation/locationbarpopup.cpp @@ -32,9 +32,10 @@ LocationBarPopup::LocationBarPopup(QWidget* parent) void LocationBarPopup::showAt(QWidget* parent) { - if (!parent) { + if (!parent || !parent->parentWidget()) return; - } + + parent = parent->parentWidget(); // Calculate sizes before showing layout()->invalidate();