Fix stamps being impossible to delete

Broken by 416f84a1c4, oops.
This commit is contained in:
Tamás Bálint Misius 2023-02-05 23:09:42 +01:00
parent 1c92280097
commit e5fec98d28
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -512,6 +512,7 @@ void Client::DeleteStamp(ByteString stampID)
if (it != stampIDs.end())
{
stampIDs.erase(it, stampIDs.end());
Platform::RemoveFile(ByteString::Build(STAMPS_DIR, PATH_SEP_CHAR, stampID, ".stm"));
WriteStamps();
}
}