Chris Lines then bundled home the winner from Stuart Campbell's injury-time corner after goals from Ian Harte and Richard Keogh had been wedged either side of a Jo Kuffour effort.
"It wasn't pretty, but the players showed great spirit," said Trollope. "We gave away two poor goals and again showed we have a lot of work to do defensively. Having worked on set-pieces all week, it was very disappointing to concede from a corner.
"But the last 10 minutes could signal a turning point for us. Jeff Hughes has the quality to score goals like that and we knew it when we signed him because he had done it against us.
"I'm not sure what part of his body Chris Lines scored with, but it was a vital goal for us. Our poor run is over and we can now look ahead with more confidence."