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:
Mark Liversedge
2013-07-12 08:57:49 +01:00
parent 2d33c0aadc
commit 9d8fbad0d2
3 changed files with 6 additions and 6 deletions

View File

@@ -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);
}
}