fix: get rid UB from integer overflow in transactionview

This commit is contained in:
Konstantin Akimov 2023-05-22 02:28:46 +07:00 committed by PastaPastaPasta
parent 6b87c21f75
commit c35746088e

View File

@ -333,7 +333,7 @@ void TransactionView::chooseType(int idx)
if(!transactionProxyModel)
return;
transactionProxyModel->setTypeFilter(
typeWidget->itemData(idx).toInt());
typeWidget->itemData(idx).toUInt());
// Persist settings
QSettings settings;
settings.setValue("transactionType", idx);