| 732 | } |
| 733 | |
| 734 | StandardButtonEnum |
| 735 | GuiAppInstance::questionDialog(const std::string & title, |
| 736 | const std::string & message, |
| 737 | bool useHtml, |
| 738 | StandardButtons buttons, |
| 739 | StandardButtonEnum defaultButton) const |
| 740 | { |
| 741 | appPTR->hideSplashScreen(); |
| 742 | { |
| 743 | QMutexLocker l(&_imp->_showingDialogMutex); |
| 744 | ++_imp->_showingDialog; |
| 745 | } |
| 746 | if (!_imp->_gui) { |
| 747 | return eStandardButtonIgnore; |
| 748 | } |
| 749 | StandardButtonEnum ret = _imp->_gui->questionDialog(title, message, useHtml, buttons, defaultButton); |
| 750 | { |
| 751 | QMutexLocker l(&_imp->_showingDialogMutex); |
| 752 | --_imp->_showingDialog; |
| 753 | } |
| 754 | |
| 755 | return ret; |
| 756 | } |
| 757 | |
| 758 | StandardButtonEnum |
| 759 | GuiAppInstance::questionDialog(const std::string & title, |
nothing calls this directly
no test coverage detected