Skip to content

Commit 844e017

Browse files
committed
fix: get rid UB from integer overflow in transactionview
1 parent e23f9b9 commit 844e017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/transactionview.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void TransactionView::chooseType(int idx)
333333
if(!transactionProxyModel)
334334
return;
335335
transactionProxyModel->setTypeFilter(
336-
typeWidget->itemData(idx).toInt());
336+
typeWidget->itemData(idx).toUInt());
337337
// Persist settings
338338
QSettings settings;
339339
settings.setValue("transactionType", idx);

0 commit comments

Comments
 (0)