When I close and reopen the file the situation remains the same: The warning triangle is only visible in the 'history', not in the 'folder' view.
The information about this behavior is being stored in the sync.dat, I have not yet figured out how.
The rebuilding of the database is a good hint that I did not know, even though it does not solve my problem.