引用于
Danell 在 21. 10 月 2020, 16:49
When I create a new shot using "Create and close" my editShot_closed() function in my plugin gets called twice.
This only happens when pressing "Create and close", not "Create" or "Next".
If I change QDialogButtonBox.AcceptRole to QDialogButtonBox.ApplyRole on the button creation (like the create button has) I no longer gets this behavour.
When I create a new shot using "Create and close" my editShot_closed() function in my plugin gets called twice.
This only happens when pressing "Create and close", not "Create" or "Next".
If I change QDialogButtonBox.AcceptRole to QDialogButtonBox.ApplyRole on the button creation (like the create button has) I no longer gets this behavour.