Fix reading AWSAttribution checkbox state (#1698)

Signed-off-by: dhrudesh <dhrudesh@amazon.com>
This commit is contained in:
amzn-hdoke
2021-07-01 09:51:32 -07:00
committed by GitHub
parent ea42ef78b8
commit 74de7f785c
@@ -25,6 +25,7 @@
#include <QSysInfo>
#include <QMessageBox>
#include <QCheckBox>
namespace AWSCore
@@ -170,7 +171,7 @@ namespace AWSCore
switch (ret)
{
case QMessageBox::Save:
m_settingsRegistry->Set(AWSAttributionEnabledKey, msgBox->checkBox());
m_settingsRegistry->Set(AWSAttributionEnabledKey, msgBox->checkBox()->checkState() == Qt::Checked);
break;
case QMessageBox::Cancel:
default: