mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Don't display duplicate error message box
This commit is contained in:
parent
b5fbfc645f
commit
11ec5f5ddf
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ void EyeTracker::setEnabled(bool enabled, bool simulate) {
|
|||
_isEnabled = enabled && success;
|
||||
_isSimulating = _isEnabled && simulate;
|
||||
|
||||
if (!success) {
|
||||
// Display error dialog after updating _isEnabled.
|
||||
if (!success && result != SMI_ERROR_HMD_NOT_SUPPORTED) {
|
||||
// Display error dialog after updating _isEnabled. Except if SMI SDK has already displayed an error message.
|
||||
QMessageBox::warning(nullptr, "Eye Tracker Error", smiReturnValueToString(result));
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue