C++ (Qt)void Widget::changeCompButtons(){ if (_isWaiting) return; _isWaiting = true; ... _isWaiting = false;}