The exact same thing happened to me a several weeks ago when I plugged my ampeg svt 7 into my Sadowsky sa200.
Fortunately, I was aware I could do something very bad having both amps stacked and switching from one to the other.
So I decided to use only one very single power cord just in case....
This saved both my amps as nothing happened to my amps when I switched on the 7 pro plugged into the sa200 as the sa200 was not powered by any source of electricity.
I still thank myself for being so cautious