| 2776 | } |
| 2777 | |
| 2778 | void |
| 2779 | OfxEffectInstance::syncPrivateData_other_thread() |
| 2780 | { |
| 2781 | if ( getApp()->isShowingDialog() ) { |
| 2782 | /* |
| 2783 | We may enter a situation where a plug-in called EffectInstance::message to show a dialog |
| 2784 | and would block the main thread until the user would click OK but Qt would request a paintGL() on the viewer |
| 2785 | because of focus changes. This would end-up in the interact draw action being called whilst the message() function |
| 2786 | did not yet return and may in some plug-ins cause deadlocks (happens in all Genarts Sapphire plug-ins). |
| 2787 | */ |
| 2788 | return; |
| 2789 | } |
| 2790 | Q_EMIT syncPrivateDataRequested(); |
| 2791 | } |
| 2792 | |
| 2793 | void |
| 2794 | OfxEffectInstance::onSyncPrivateDataRequested() |
no test coverage detected