Abort OP creation transaction if TC selection is aborted with cancel, #3274

This commit is contained in:
Markus Lampert
2017-11-27 15:04:26 -08:00
committed by Yorik van Havre
parent 53dc025ca1
commit c38eee06e2
5 changed files with 17 additions and 9 deletions

View File

@@ -456,7 +456,7 @@ def findToolController(obj, name=None):
mylist = [i.Label for i in controllers]
form.uiToolController.addItems(mylist)
r = form.exec_()
if r is False:
if not r:
tc = None
else:
tc = [i for i in controllers if i.Label == form.uiToolController.currentText()][0]