mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fixup MainWindow refactor Part 2
.. Minor oopsie with references to context->mainWindow->athlete instead of simply context->athlete. The MainWindow refactor will be complete when references to the mainWindow class is for gui reasons only.
This commit is contained in:
@@ -213,7 +213,7 @@ void SearchBox::runMenu(QAction *x)
|
||||
ColumnChooser *selector = new ColumnChooser(context->mainWindow->listView->logicalHeadings);
|
||||
selector->show();
|
||||
} else {
|
||||
NamedSearch get = context->mainWindow->athlete->namedSearches->get(x->text());
|
||||
NamedSearch get = context->athlete->namedSearches->get(x->text());
|
||||
if (get.name == x->text()) {
|
||||
setMode(static_cast<SearchBox::SearchBoxMode>(get.type));
|
||||
setText(get.text);
|
||||
@@ -283,6 +283,6 @@ SearchBox::addNamed()
|
||||
x.text = this->text();
|
||||
x.type = mode;
|
||||
x.count = 0;
|
||||
context->mainWindow->athlete->namedSearches->getList().append(x);
|
||||
context->athlete->namedSearches->getList().append(x);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user