fix: fix warnings reported by LGTM.com

This commit is contained in:
Sefa Eyeoglu
2022-06-17 16:34:32 +02:00
parent 03e454b71d
commit 9ec260619b
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: {