Change EditNamedSearches parent to MainWindow

This overrides the previous commit (7c74faf)
Using context->mainWindow is more explicit,
and likely more robust.
This commit is contained in:
Alejandro Martinez
2024-05-29 19:04:16 -03:00
parent 7c74fafc4a
commit 04f2f70dbd
2 changed files with 2 additions and 2 deletions

View File

@@ -724,7 +724,7 @@ LTMSidebar::eventPopup()
void
LTMSidebar::manageFilters()
{
EditNamedSearches *editor = new EditNamedSearches(parentWidget(), context);
EditNamedSearches *editor = new EditNamedSearches(context->mainWindow, context);
editor->move(QCursor::pos()+QPoint(10,-200));
editor->show();
}

View File

@@ -354,7 +354,7 @@ void SearchBox::runMenu(QAction *x)
if (x->text() == tr("Add to Named Filters")) addNamed();
else if (x->text() == tr("Manage Filters")) {
EditNamedSearches *editor = new EditNamedSearches(parent->parentWidget(), context);
EditNamedSearches *editor = new EditNamedSearches(context->mainWindow, context);
editor->move(QCursor::pos() - QPoint(460, -5));
editor->show();