mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +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;
|
_isEnabled = enabled && success;
|
||||||
_isSimulating = _isEnabled && simulate;
|
_isSimulating = _isEnabled && simulate;
|
||||||
|
|
||||||
if (!success) {
|
if (!success && result != SMI_ERROR_HMD_NOT_SUPPORTED) {
|
||||||
// Display error dialog after updating _isEnabled.
|
// Display error dialog after updating _isEnabled. Except if SMI SDK has already displayed an error message.
|
||||||
QMessageBox::warning(nullptr, "Eye Tracker Error", smiReturnValueToString(result));
|
QMessageBox::warning(nullptr, "Eye Tracker Error", smiReturnValueToString(result));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue