Fixed cloud disabling

This commit is contained in:
r.kuznetsov 2018-05-08 17:11:50 +03:00 committed by Aleksandr Zatsepin
parent 81ad9814ab
commit cba514998f

View file

@ -435,8 +435,7 @@ void Cloud::SetState(State state)
case State::Disabled:
// Delete index file and clear memory.
my::DeleteFileX(m_params.m_indexName);
m_files.clear();
my::DeleteFileX(GetIndexFilePath(m_params.m_indexName));
m_index = Index();
break;