| 2790 | } |
| 2791 | |
| 2792 | void |
| 2793 | OfxEffectInstance::syncPrivateData_other_thread() |
| 2794 | { |
| 2795 | if ( getApp()->isShowingDialog() ) { |
| 2796 | /* |
| 2797 | We may enter a situation where a plug-in called EffectInstance::message to show a dialog |
| 2798 | and would block the main thread until the user would click OK but Qt would request a paintGL() on the viewer |
| 2799 | because of focus changes. This would end-up in the interact draw action being called whilst the message() function |
| 2800 | did not yet return and may in some plug-ins cause deadlocks (happens in all Genarts Sapphire plug-ins). |
| 2801 | */ |
| 2802 | return; |
| 2803 | } |
| 2804 | Q_EMIT syncPrivateDataRequested(); |
| 2805 | } |
| 2806 | |
| 2807 | void |
| 2808 | OfxEffectInstance::onSyncPrivateDataRequested() |
no test coverage detected