mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user