Issue #81: Prevent GUI action when modal dialog opened