I have discovered a bug that prevents me from saving changes to the game database after adding, deleting, or modifying games in it.
1) Adding a new game. Let's say I just created a new database in PGN format. Now I want to add a game to it using the "Import PGN files" function. After a game is added to the database, a plus icon appears opposite it, symbolizing that the game has been added. But the "Save changes" function is currently not available for the database itself. It is not in the context menu, and the corresponding button is disabled.
2) Deleting the game. Let's say I find myself in the situation described above and decide to delete the game I just added. (to try adding it again). I mark the game as deleted. A cross icon appears opposite it. And this time the button to save changes to the database is available! But when I try to save the changes, I get an application error: "Error: precondition violation: index < size()". Saving fails.
3) Modifying the game. Let's say I already have a database of games and I want to add options or comments to one of them. I add them, then use the "Replace game in <database>.pgn" function. So far everything is working out: a “pencil” icon appears in front of the game. But the button to save changes to the database is again disabled.</database>
As a workaround for saving modified games to the database, I use the following methods:
1) Instead of "Replace game in..." use "Add new game to..." and then delete the previous version of this game. Sometimes it works, sometimes it doesn't.
2) A more reliable way is to save the game with changes to a separate file, and then manually copy it and paste it into the database file, not forgetting to delete the previous version of the game. Essentially, this is the same as the first method, only we do it manually. This works with the PGN format.
In principle, both methods are not so difficult, but it’s still great to be able to save games directly to the database.