1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

LocationBarPopup: Show the popup relative to locationbar

This commit is contained in:
David Rosca 2016-01-25 14:21:17 +01:00
parent 007d68a027
commit 2c04ebba63

View File

@ -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();