load fitting in selected page if ctrl-key pressed and option active

This commit is contained in:
Indiction
2016-10-30 01:05:22 +02:00
parent 12d5a21982
commit 791ddcb9a1

View File

@@ -59,7 +59,7 @@ class FitSpawner(gui.multiSwitch.TabSpawner):
openFitInNew = sFit.serviceFittingOptions["openFitInNew"]
mstate = wx.GetMouseState()
if mstate.CmdDown() or startup or openFitInNew:
if (not openFitInNew and mstate.CmdDown()) or startup or (openFitInNew and not mstate.CmdDown()):
self.multiSwitch.AddPage()
view = FittingView(self.multiSwitch)