Merge pull request #808 from Scrumplex/fix-lgtm-warnings

This commit is contained in:
Sefa Eyeoglu
2022-07-09 01:10:59 +02:00
committed by GitHub
8 changed files with 20 additions and 11 deletions

View File

@ -79,6 +79,8 @@ QString AccountTask::getStateMessage() const
bool AccountTask::changeState(AccountTaskState newState, QString reason)
{
m_taskState = newState;
// FIXME: virtual method invoked in constructor.
// We want that behavior, but maybe make it less weird?
setStatus(getStateMessage());
switch(newState) {
case AccountTaskState::STATE_CREATED: {