This question:
QString replace characters outside of quotes
was removed by its author 4 minutes after a working solution has been proposed by me. This is enough time to copy the code, having in mind that the OP was active at that time and answered my attempts to clarify the question in the comments section.
The OP's account has been removed too.
I have put enough effort to come up with a decent solution quickly. Instead of giving an attribution for helping him/her, the OP removed the question.
I do not think this is a fair behavior, which should be encouraged. That is why I have flagged the question for moderator intervention, describing the situation and asking to undelete the post.
However, I am not sure if this is the right way to bring the question (and my answer) back, since I was in a similar situation recently with this post:
How to disable the default copy/paste behavior in QTreeView?
and I have flagged it for moderator intervention as well. However, it has been already some time (5 days at the moment of this post), but the flag is still pending
.
I understand that the moderators have a lot to do. That is why I am asking this question. Probably there is a way for the community to solve this, which I am not aware of.
So, as it is not a very rare event, probably it would be a good idea to know:
What should I do in such situations?
References
I have read about User who continuously deletes questions after getting an answer, then posts a followup, but it does not provide an answer for my case.
Here is a related discussion initiated by me about the moderator intervention flag: