diff --git a/.gitignore b/.gitignore index 5291a38..aba1508 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,5 @@ target_wrapper.* # QtCreator CMake CMakeLists.txt.user* + +.vscode \ No newline at end of file diff --git a/qt-openzwave/source/qtozwnotification.cpp b/qt-openzwave/source/qtozwnotification.cpp index d27530f..b899b1c 100644 --- a/qt-openzwave/source/qtozwnotification.cpp +++ b/qt-openzwave/source/qtozwnotification.cpp @@ -214,7 +214,10 @@ void OZWNotification::processNotification case OpenZWave::Notification::Type_UserAlerts: { - emit Get()->ozwUserAlert(_notification->GetNodeId(), static_cast(_notification->GetUserAlertType()), _notification->GetRetry()); + quint8 retry = 0; + if (static_cast(_notification->GetUserAlertType()) == OpenZWave::Notification::Alert_ApplicationStatus_Retry) + retry = _notification->GetRetry(); + emit Get()->ozwUserAlert(_notification->GetNodeId(), static_cast(_notification->GetUserAlertType()), retry); break; }