| 884 | } |
| 885 | |
| 886 | void Widget::ReleaseModal() { |
| 887 | if( modal_widget.lock() == shared_from_this() ) { |
| 888 | modal_widget.reset(); |
| 889 | |
| 890 | return; |
| 891 | } |
| 892 | |
| 893 | #if defined( SFGUI_DEBUG ) |
| 894 | std::cerr << "SFGUI warning: Tried to release modal although current widget not modal.\n"; |
| 895 | #endif |
| 896 | } |
| 897 | |
| 898 | bool Widget::IsModal() const { |
| 899 | if( modal_widget.lock() == shared_from_this() ) { |
nothing calls this directly
no outgoing calls
no test coverage detected