Added settings for seasons and number series. Added static method
ComboData::createComboData for easier combo bindings.
This commit is contained in:
@@ -125,6 +125,16 @@ Context::Context()
|
||||
m_dbOpened = false;
|
||||
}
|
||||
|
||||
SeasonPtr Context::currentSeason() const
|
||||
{
|
||||
return m_currentSeason;
|
||||
}
|
||||
|
||||
void Context::setCurrentSeason(const SeasonPtr ¤tSeason)
|
||||
{
|
||||
m_currentSeason = currentSeason;
|
||||
}
|
||||
|
||||
QSharedPointer<User> Context::currentUser() const
|
||||
{
|
||||
return m_currentUser;
|
||||
@@ -271,6 +281,8 @@ void Context::checkSeason()
|
||||
season->setActive(true);
|
||||
srv.save(season);
|
||||
}
|
||||
|
||||
m_currentSeason = season;
|
||||
}
|
||||
|
||||
void Context::checkNumberSeries()
|
||||
|
||||
Reference in New Issue
Block a user