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