Queen's Park manager Kenny Brannigan has resigned from the Scottish Third Division club after a touchline bust-up with a player and supporter.
Kenny Brannigan has had a controversial career
It seems certain he would have been sacked had he not taken the decision.
Club secretary Alistair MacKay said: "It is a blow to lose our manager in such very regrettable circumstances."
Brannigan and a supporter have accused one another of trading blows after the manager rowed with winger David Clarke during Saturday's match with Elgin.
The manager and William Canning, father of midfielder Steven Canning, presently out of action with a broken leg, became involved after Clarke was substituted during the 1-0 defeat.
Brannigan had grabbed Clarke after the 21-year-old kicked a water bottle on his way off the field.
Queen's Park hope that Brannigan's decision to quit will avoid the need for any police investigation of the incident.
"We will be looking for a replacement and we will be speaking to the players on Thursday night and tell them who will be in charge in the meantime," said MacKay.
MacKay was especially disappointed to lose his manager considering they had backed him by sending the first-team squad to Italy for pre-season training.
"Things seemed to be coming together and we had made a reasonable start to the season," he said.
Brannigan had been left angry at the lack of backing given him by the club's board following Saturday's incident, despite Clarke insisting that he wanted Brannigan to stay at the club.
The manager told the Daily Record: "We made a decent start to the season and I've brought in players with SPL experience. All that's down the stank."
Before moving into management, Brannigan was a defender with a reputation for a fiery temper.
He was told to leave Falkirk in 1989 after being part of a group of players arrested following a brawl on a night out in seaside town Saltcoats.
Brannigan was also involved in controversial incidents while with Kilmarnock and Stranraer.
Clarke defended Brannigan following the latest incident.
"It was just heat-of-the-moment stuff which has probably been blown out of proportion," the player had told the Sun.
"I don't want to see the manager sacked over it.
"He signed me and, as far as I'm concerned, he's a great guy. "