diff --git a/python/tk_multi_workfiles/file_open_form.py b/python/tk_multi_workfiles/file_open_form.py index de340ba3..15915f1a 100644 --- a/python/tk_multi_workfiles/file_open_form.py +++ b/python/tk_multi_workfiles/file_open_form.py @@ -13,6 +13,8 @@ so that they can choose one to open """ +from functools import partial + import sgtk from sgtk.platform.qt import QtGui @@ -299,7 +301,7 @@ def _populate_open_menu(self, menu, file_actions): else: q_action = QtGui.QAction(action.label, menu) q_action.triggered[()].connect( - lambda a=action, checked=False: self._perform_action(a) + partial(self._perform_action, action) ) menu.addAction(q_action) add_separators = True