Change EditNamedSearches parent to MainWindow

So colors match other dialogs avoiding legibility issues on dark themes.
This change doesn't seem to have negative side effects testing on
Windows, macOS and Linux (Ubuntu 22.04 over WSL) but on Linux it may
dependend on the windows manager. We can revert later otherwise.
Fixes #4506
Fixes #4504
This commit is contained in:
Alejandro Martinez
2024-05-29 16:17:58 -03:00
parent dc5da99cbc
commit 7c74fafc4a
2 changed files with 2 additions and 2 deletions

View File

@@ -724,7 +724,7 @@ LTMSidebar::eventPopup()
void
LTMSidebar::manageFilters()
{
EditNamedSearches *editor = new EditNamedSearches(this, context);
EditNamedSearches *editor = new EditNamedSearches(parentWidget(), 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(this, context);
EditNamedSearches *editor = new EditNamedSearches(parent->parentWidget(), context);
editor->move(QCursor::pos() - QPoint(460, -5));
editor->show();