mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:20:06 +00:00
Don't allow placefiles with an empty name
This commit is contained in:
parent
e14db6cd21
commit
df4500478c
2 changed files with 23 additions and 10 deletions
|
|
@ -356,10 +356,13 @@ void PlacefileManager::Impl::ReadPlacefileSettings()
|
|||
PlacefileRecord record =
|
||||
boost::json::value_to<PlacefileRecord>(placefileEntry);
|
||||
|
||||
self_->AddUrl(record.name_,
|
||||
record.title_,
|
||||
record.enabled_,
|
||||
record.thresholded_);
|
||||
if (!record.name_.empty())
|
||||
{
|
||||
self_->AddUrl(record.name_,
|
||||
record.title_,
|
||||
record.enabled_,
|
||||
record.thresholded_);
|
||||
}
|
||||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue