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:
parent
007d68a027
commit
2c04ebba63
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user