King Louis-Philippe of France abdicated in February 1848 because of the Revolution in France. What PoD after 1840 could prevent his eventual abdication. Basically, keep the July Monarchy in power.
Without a radical change in the electoral law (they were only about 240,000 people rich enough to get the right to vote), I don't see how the regime could have reformed itself.