Fixed missing dummy item after reloading (#5552)

Fixes #5548

Thanks to @reunite-ro and @Triedge
This commit is contained in:
Lemongrass3110
2020-11-17 10:14:11 +01:00
committed by GitHub
parent 8053a72890
commit 9cdc008bfe
4 changed files with 26 additions and 21 deletions

View File

@@ -84,7 +84,11 @@ bool YamlDatabase::verifyCompatibility( const YAML::Node& rootNode ){
}
bool YamlDatabase::load(){
return this->load( this->getDefaultLocation() );
bool ret = this->load( this->getDefaultLocation() );
this->loadingFinished();
return ret;
}
bool YamlDatabase::reload(){
@@ -128,8 +132,6 @@ bool YamlDatabase::load(const std::string& path) {
this->parseImports( rootNode );
this->loadingFinished();
return true;
}